ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf Hauser" <ralfhau...@gmx.ch>
Subject RE: splitting "arg line" into multiple "arg value"s fails? Unable to execute command
Date Mon, 14 Oct 2002 16:49:29 GMT
Thanks for the quick answer - too bad.

Yes, I could use <delete> - if
a) I could run delete inside <apply ...> and
b) delete could then work with <targetfile/> in it's fileset's "include"
attribute.

Is that already possible?
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Montag, 14. Oktober 2002 18:37
> To: ant-user@jakarta.apache.org
>
> 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>.



--
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