ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias P. <groups.mpat...@gmx.de>
Subject Re: Bug in <exec>/<args>?
Date Wed, 30 Jul 2003 16:04:50 GMT
Hi Peter,

this works! If I replace the last -cmd &quot;CWSD src&quot; with -version
(another parameter of the exe) i got the right answer...

I also tried it with nested <arg value=""/> before, but didnt work neither.
:-(
The same problem. The quotes are not include... 

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


Some other tips?

Matthias


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

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualit├Ątssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


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


Mime
View raw message