ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27192] - fixcrlf task does not work when source=target
Date Wed, 25 Feb 2004 09:49:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27192>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27192

fixcrlf task does not work when source=target

peter.reilly@corvil.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From peter.reilly@corvil.com  2004-02-25 09:49 -------
As Matt says, if the file does not need to changed, fixcrlf will
not change it.
The following works for me:
  <target name="inplace" xmlns:ac="antlib:net.sf.antcontrib">
    <delete dir="inplace" quiet="yes"/>
    <concat destfile="inplace/test.txt">
      Hello World
      line 2
    </concat>
    <copy file="inplace/test.txt" tofile="inplace_test.copy"/>
    <fixcrlf eol="mac" srcdir="inplace" destdir="inplace"/>
    <ac:shellscript shell="bash">
      diff inplace/test.txt inplace_test.copy
    </ac:shellscript>
  </target>

output:
inplace:
   [delete] Deleting directory /home/preilly/learning/ant/inplace
     [copy] Copying 1 file to /home/preilly/learning/ant
[ac:shellscript] 1c1,4
[ac:shellscript] < 
[ac:shellscript]       Hello World      line 2    \ No newline at end of file
[ac:shellscript] ---
[ac:shellscript] > 
[ac:shellscript] >       Hello World
[ac:shellscript] >       line 2
[ac:shellscript] >     
[ac:shellscript] \ No newline at end of file


[ac:shellscript] Result: 1

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


Mime
View raw message