ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: Convert fileset into command-line args, allowing for spaces in directori
Date Wed, 25 Jan 2006 14:49:41 GMT
>    <!-- each path element in its own variable; on several threads
>    args (1)
>      0: C:\tmp\ant-javaWithPath\files\with a space.file
>    args (1)
>      0: C:\tmp\ant-javaWithPath\files\withoutaspace.file
>    -->
>    <apply executable="java">
>        <arg line="-classpath ."/>
>        <arg value="App"/>
>        <path refid="p"/>
>    </apply>

You're just missing parallel="true" to invoke a single command (or as
few as necessary in case of a very long command line when
'maxparallel' is set) instead of one per path element. Your other
solutions work Matt, they are just less the "Ant way" IMHO, and
involve <pathconvert> and <arg line> which must re-tokenize into
different args (usually OK, but it varies in corner cases...)

--DD

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


Mime
View raw message