~ubuntu-branches/ubuntu/maverick/ant/maverick

« back to all changes in this revision

Viewing changes to src/main/org/apache/tools/ant/taskdefs/Tar.java

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-09-30 14:47:45 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080930144745-0x8uzivd9t15dua3
Tags: 1.7.1-0ubuntu1
* New upstream version (bug fix release).
  - mainly a bugfix release.
  - has extended support for Java6 features.
  - <script> now has support for JavaFX.
  - release notes: http://apache.linux-mirror.org/ant/README.html
* Remove debian/patches/05_ant-bug433444.patch. Obsoleted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 * @ant.task category="packaging"
59
59
 */
60
60
public class Tar extends MatchingTask {
 
61
    private static final int BUFFER_SIZE = 8 * 1024;
61
62
 
62
63
    /**
63
64
     * @deprecated since 1.5.x.
466
467
            if (!r.isDirectory()) {
467
468
                in = r.getInputStream();
468
469
 
469
 
                byte[] buffer = new byte[8 * 1024];
 
470
                byte[] buffer = new byte[BUFFER_SIZE];
470
471
                int count = 0;
471
472
                do {
472
473
                    tOut.write(buffer, 0, count);
584
585
            Iterator iter = rc.iterator();
585
586
            while (upToDate && iter.hasNext()) {
586
587
                Resource r = (Resource) iter.next();
587
 
                upToDate &= archiveIsUpToDate(r);
 
588
                upToDate = archiveIsUpToDate(r);
588
589
            }
589
590
        }
590
 
 
591
591
        return upToDate;
592
592
    }
593
593