ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne <...@materne.de>
Subject AntLib compress
Date Sun, 28 Mar 2010 14:51:10 GMT
I tried to build the compress library with 
    ant -lib commons-compress-1.0.jar
using
- Ant 1.8.0
- Commons Compress 1.0

But I get compiler errors:

compile:
    [javac] Compiling 43 source files to
C:\ant\svn-repository\antlibs\compress\trunk\build\classes
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\resources\CommonsCompressArchiveResource.java:216: cannot find symbol
    [javac] symbol  : method getLastModifiedDate()
    [javac] location: interface
org.apache.commons.compress.archivers.ArchiveEntry
    [javac]         setLastModified(e.getLastModifiedDate().getTime());
    [javac]                          ^
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\resources\ZipResource.java:189: getExtraFields() in
org.apache.commons.compress.archivers.zip.ZipArchiveEntry cannot be applied
to (boolean)
    [javac]             extras = ze.getExtraFields(true);
    [javac]                        ^
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\taskdefs\Cpio.java:40: cannot find symbol
    [javac] symbol  : variable BLOCK_SIZE
    [javac] location: interface
org.apache.commons.compress.archivers.cpio.CpioConstants
    [javac]     private int blockSize = CpioConstants.BLOCK_SIZE;
    [javac]                                          ^
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\taskdefs\Cpio.java:47: cannot find symbol
    [javac] symbol  : constructor
CpioArchiveOutputStream(java.io.OutputStream,short,int)
    [javac] location: class
org.apache.commons.compress.archivers.cpio.CpioArchiveOutputStream
    [javac]                     return new CpioArchiveOutputStream(stream,
    [javac]                            ^
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\taskdefs\Cpio.java:57: cannot find symbol
    [javac] symbol  : constructor
CpioArchiveEntry(short,java.lang.String,long)
    [javac] location: class
org.apache.commons.compress.archivers.cpio.CpioArchiveEntry
    [javac]                         new CpioArchiveEntry(format.getFormat(),
r.getName(),
    [javac]                         ^
    [javac]
C:\ant\svn-repository\antlibs\compress\trunk\src\main\org\apache\ant\compres
s\taskdefs\ExpandBase.java:131: cannot find symbol
    [javac] symbol  : method getLastModifiedDate()
    [javac] location: interface
org.apache.commons.compress.archivers.ArchiveEntry
    [javac]                             ent.getName(),
ent.getLastModifiedDate(),
    [javac]                                               ^
    [javac] 6 errors


Do I use a wrong commons-compress version or is the code in svn not
buildable?


Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message