ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <qazw...@gmail.com>
Subject Re: Using shell command in ANT script
Date Wed, 24 Nov 2010 20:04:49 GMT
On Wed, Nov 24, 2010 at 12:33 PM, Ludwig, Michael
<Michael.Ludwig@delphi-mb.de> wrote:
> It's <fixcrlf>, not <fixcrnl>.
>
> And you could also use <pathconvert>:

Thanks for that tip of <pathconvert>. You can also use the
<flattenmapper/> to remove directory names if you so choose:

        <fileset dir="../../../jobs" id="dir">
            <include name="*"/>
        </fileset>
        <pathconvert refid="dir"
            property="dir.prop"
            pathsep="${line.separator}">
            <flattenmapper/>
        </pathconvert>
        <echo message="${dir.prop}" file="foo"/>

That should be able to replace the <exec> task.

-- 
David Weintraub
qazwart@gmail.com

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


Mime
View raw message