ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <Michael.Lud...@delphi-mb.de>
Subject RE: Using shell command in ANT script
Date Wed, 24 Nov 2010 17:33:48 GMT
>         <fileset dir=".." id="dir">
>             <include name="*"/>
>         </fileset>
>         <property name="dir.prop" refid="dir"/>
>         <echo message="${dir.prop}" file="foo"/>
>         <replace file="foo" token=";" value="&#x000A;"/>
>         <fixCRNL file="foo"/>

It's <fixcrlf>, not <fixcrnl>.

And you could also use <pathconvert>:

<pathconvert refid="my.dir" pathsep="${line.separator}"
  property="out.prop"/>
<echo message="${out.prop}"/>

You'll probably get absolute pathnames then.
(At least that's what I get.)

Michael

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


Mime
View raw message