ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Berger <ced...@wireless-networks.com>
Subject Tar/Tarfileset broken on Ant 1.3 ?
Date Fri, 03 Aug 2001 23:34:38 GMT
Hi,

I'm trying to generate a TAR file with Ant 1.3 on Win2K.

Unfortunately, I've not had much success lately.
There is 3 issues, here:

1) The example at the end of  the documentation here:
 http://jakarta.apache.org/ant/manual/CoreTasks/tar.html
has obviousely never been tested, since the XML syntax
is incorrect (<tarfileset> element ends with a </fileset> element).
Is there other mistakes in the example?

2) FIRST TRY:

With the following code, starting from a "clean" state:

 <tar tarfile="${dist}/http-proxy.tar">
   <tarfileset dir="${build}/http.proxy" mode="755" username="0" group="0">
     <include name="${build}/http.proxy/**/*.sh"/>
   </tarfileset>
   <tarfileset dir="${build}/http.proxy" mode="644" username="0" group="0">
     <include name="{build}/http.proxy/**/*.jar"/>
   </tarfileset>
 </tar>
 <gzip src="${dist}/http-proxy.tar" zipfile="${dist}/http-proxy.tgz" />

Result:

      [tar] Nothing to do: R:\prj\noc.proxy.http\dist\http-proxy.tar is up to date.
     [gzip] Building gzip: R:\prj\noc.proxy.http\dist\http-proxy.tgz

BUILD FAILED

R:\prj\noc.proxy.http\build.xml:77: Problem creating gzip R:\prj\noc.proxy.http\dist\http-proxy.tar
(The system cannot find the file specified)
--- Nested Exception ---
java.io.FileNotFoundException: R:\prj\noc.proxy.http\dist\http-proxy.tar (The system cannot
find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:64)
        at java.io.FileInputStream.<init>(FileInputStream.java:95)
        at org.apache.tools.ant.taskdefs.GZip.zipFile(GZip.java:131)
        at org.apache.tools.ant.taskdefs.GZip.execute(GZip.java:101)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

!!!!!!!!
the first line says that  "R:\prj\noc.proxy.http\dist\http-proxy.tar is up to date." But this
file is never created!

3) SECOND TRY:

With the following code, starting from a "clean" state:

 <tar tarfile="${dist}/http-proxy.tar">
   <tarfileset dir="${build}/http.proxy" mode="755" username="0" group="0">
     <include name="**/*.sh"/>
   </tarfileset>
   <tarfileset dir="${build}/http.proxy" mode="644" username="0" group="0">
     <include name="**/*.jar"/>
   </tarfileset>
 </tar>
 <gzip src="${dist}/http-proxy.tar" zipfile="${dist}/http-proxy.tgz" />

Result:

      [tar] Building tar: R:\prj\noc.proxy.http\dist\http-proxy.tar

BUILD FAILED

R:\prj\noc.proxy.http\build.xml:69: Problem creating TAR: bin\catalina.sh (The system cannot
find the path specified)
--- Nested Exception ---
java.io.FileNotFoundException: bin\catalina.sh (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:64)
        at java.io.FileInputStream.<init>(FileInputStream.java:95)
        at org.apache.tools.ant.taskdefs.Tar.tarFile(Tar.java:239)
        at org.apache.tools.ant.taskdefs.Tar.execute(Tar.java:218)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

?????????????

Am I doing anything wrong here?
Thanks,
Cedric



Mime
View raw message