[kaffe] [gump] Ant failure if filtering is switched on during copy
Davanum Srinivas
dims at yahoo.com
Fri Dec 10 08:35:54 PST 2004
Here's the build.xml that you can create the problem with. drop both build.xml and a.txt in a
directory and run ant from that directory. It should create a b.txt with "ABCDEFG = 3.8.2".
============= build.xml ==============
<project name="foo" default="bar" basedir=".">
<property name="version" value="3.8.2" />
<target name="bar">
<filter token="version" value="${version}" />
<copy
file="a.txt"
tofile="b.txt"
filtering="on"
/>
</target>
</project>
============= a.txt ==============
ABCDEFG = @version@
==================================
The source code in question is in Ant's copy task, first see doFileOperationsin Copy.java which in
turn calls copyFile in FileUtils.java:
http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/Copy.java?view=markup
http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/util/FileUtils.java?view=markup
Notes:
- Problems does not happen in IKVM, just with Kaffe.
Thanks,
dims
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
__________________________________
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
http://celebrity.mail.yahoo.com
More information about the kaffe
mailing list