ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Bug in <exec>/<args>?
Date Wed, 30 Jul 2003 16:03:41 GMT
This will not work.
You need to pass each param using <arg value=""/>
Peter
On Wednesday 30 July 2003 16:48, Matthias P. wrote:
> Hi,
>
> as writen in my mail before i am having problems to pass a command via
> <exec> to the command line. After having (a very sharp) look at the ant
> output i
> realized that the <exec> or <arg> tasks cuts out my qoutes. My command
> specially needs the quotes so i entered them by &qout; but in the -verbose
> output
> they arent there!
>
> Here my ant-task:
>   <target name="pvcs-create-baseline" depends="probe-for-pvcsclient">
>     <echo message="this is the quote test:[&quot;]"/>
>     <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>
>   </target>
>
> Look at the &quot; in the <arg> element. It is not in the verbose output...
>
> pvcs-create-baseline:
>      [echo] this is the quote test:["]
>      [exec] Current OS is Windows NT
>      [exec] Executing 'cmd.exe' with arguments:
>      [exec] '/c'
>      [exec] 'cmdclient'
>      [exec] '-user'
>      [exec] 'xxx'
>      [exec] '-pass'
>      [exec] 'xxx'
>      [exec] '-host'
>      [exec] 's96pi4v1.edc.xxx.com'
>      [exec] '-install'
>      [exec] '/var/xx/dimensions7_2'
>      [exec] '-dbname'
>      [exec] 'xxx'
>      [exec] '-dbpass'
>      [exec] '-sqlnet'
>      [exec] 'prod.edc.xxx.com'
>      [exec] '-cmd'
>      [exec] 'CWSD src'
>
> In the last line there should be the quotes! Is this a bug or I am doing
> something wrong?
>
> Matthias.


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


Mime
View raw message