ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: splitting "arg line" into multiple "arg value"s fails? Unable to execute command
Date Mon, 14 Oct 2002 16:37:16 GMT
On Mon, 14 Oct 2002, Ralf Hauser <ralfhauser@gmx.ch> wrote:

> when I do
>     <exec executable="${shCmd}">
>        <arg value='-c '/>
>        <arg value='"rm  '/>
>        <arg value='*.??.html'/>
>        <arg value='"'/>
>     </exec>

Are you familar with Runtime.exec and the String[] version of it?  Ant
will generate one String from each <arg value>, while you want to make
it compose a single string from several.  There is no way to do that
(yet).

I'm sure the real example is a little more difficult, otherwise you
could simply use <delete>.

Stefan

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


Mime
View raw message