ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Albers" <smurfb...@hotmail.com>
Subject how to convert linefeeds using fixcrlf.
Date Thu, 18 Sep 2008 16:56:42 GMT
How do I convert line feeds to from unix to windows or windows to unix?


<target name="convert_linefeeds">
<fixcrlf srcdir="${logdir}" includes="**/*.log"/>
</target>

1.)


This shows some example crlf
http://jira.codehaus.org/browse/MPDIST-9


2.)
Are these constants?
What would they be?

<patternset refid="fixcrlf.unix.patternset"/>
<patternset refid="fixcrlf.win.patternset"/>


3.)
The first one converts from linux to windows or converts to linux?



<!-- fix CR/LF for unix dist -->
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" eof="remove">
<patternset refid="fixcrlf.patternset"/>
<patternset refid="fixcrlf.unix.patternset"/>
</ant:fixcrlf>
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="crlf"
eof="remove">
<patternset refid="fixcrlf.win.patternset"/>
</ant:fixcrlf>

<!-- fix CR/LF for win dist -->
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" eof="remove">
<patternset refid="fixcrlf.unix.patternset"/>
</ant:fixcrlf>
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="crlf"
eof="remove">
<patternset refid="fixcrlf.patternset"/>
<patternset refid="fixcrlf.win.patternset"/>
</ant:fixcrlf>




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


Mime
View raw message