ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Bug in <exec>/<args>?
Date Thu, 31 Jul 2003 06:36:33 GMT
On Wed, 30 Jul 2003, Matthias P. <groups.mpatzak@gmx.de> wrote:

> <exec executable="cmd.exe" failonerror="true" vmlauncher="false">
>   <arg line="/c cmdclient -user xxx -pass xxx -host s96pi4v1.edc.xxx.com -install
/var/xxx/dimensions7_2 -dbname xxx -dbpass -sqlnet prod.edc.xxx.com -cmd &quot;CWSD src&quot;"/>
> </exec>

<disclaimer>My knowledge about Windows and cmd.exe is far far far
below your average user's knowledge.</disclaimer>  On a Unix system,
if you invoke the shell with -c the rest after this is supposed to be
a single argument.  This would be something like

<exec executable="cmd.exe" failonerror="true" vmlauncher="false">
  <arg value="/c"/>
  <arg value="cmdclient -user xxx -pass xxx -host s96pi4v1.edc.xxx.com -install /var/xxx/dimensions7_2
-dbname xxx -dbpass -sqlnet prod.edc.xxx.com -cmd &quot;CWSD src&quot;"/>
</exec>

Note the usage of the value attribute in the second <arg> element.

Stefan

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


Mime
View raw message