Grokbase Groups Ant user May 2010
FAQ
<project>
<echo message="junk" file="foo" />
<copy verbose="true" file="foo" tofile="foo2" />
</project>

Ant copy task fails to copy file properly on AIX with Ant 1.8.0 and 1.8.1. The files appear to copy but end up empty.
Switching between Java 1.5 and 1.6 had no effect when using Ant 1.8 or 1.8.1, but switching back to Ant 1.7 the copy task started working again.

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: copy.xml
Detected Java version: 1.6 in: /plm/svnas/tc_ref/TOOLBOX/aix/JDK/jdk1.6.0_00/jre
Detected OS: AIX
[copy] Copying 1 file to /plm/svnas/uhome/dsd
[copy] Copying /plm/svnas/uhome/dsd/foo to /plm/svnas/uhome/dsd/foo2

svibm006 (~) [27]la foo*
-rw-r--r-- 1 dsd pdmusr 4 May 26 08:54 foo
-rw-r--r-- 1 dsd pdmusr 4 May 26 08:54 foo2


Apache Ant version 1.8.1 compiled on April 30 2010
Buildfile: /plm/svnas/uhome/dsd/copy.xml
Detected Java version: 1.6 in: /plm/svnas/tc_ref/TOOLBOX/aix/JDK/jdk1.6.0_00/jre
Detected OS: AIX
[copy] Copying 1 file to /plm/svnas/uhome/dsd
[copy] Copying /plm/svnas/uhome/dsd/foo to /plm/svnas/uhome/dsd/foo2

svibm006 (~) [30]la foo*
-rw-r--r-- 1 dsd pdmusr 4 May 26 08:55 foo
-rw-r--r-- 1 dsd pdmusr 0 May 26 08:55 foo2

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriesant
postedMay 26, '10 at 2:03p
activeMay 26, '10 at 2:03p
posts1
users1
websiteant.apache.org

1 user in discussion

St. Denis, David: 1 post

People

Translate

site design / logo © 2022 Grokbase