ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Wannamaker" <>
Subject RE: filter copy corrupts jars?
Date Wed, 12 Jun 2002 23:50:25 GMT
Source is *always* the ideal solution :-)
Turns out copy uses a reader when filters are active.

This will corrupt binary files because BufferedReader.readLine()
will read up to cr, lf, or cr/lf, regarless of the platform.
BufferedWriter.newLine() doesn't match this transformation because
it uses the newline character of the platform.

So, the moral is that no binary files should be in the fileset
when filtering is active.


which strips out 
|   2. look at the source for the copy task. While probably
|       the ideal solution, it may take a while to obtain the
|       sources if you don't have them, and work your way
|       through the code to find the answer.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message