ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Coast <nathan.co...@blueyonder.co.uk>
Subject Re: quotes in args for exec
Date Mon, 29 Jul 2002 17:02:42 GMT
unfortunately the same problem arises.  If I want to execute the java cmd 
com.sun.jwsdp.launcher.XRPCCExecutable directly I still need to pass arguments 
using the <arg> elements containing quotes.  And the arg elements seems to strip 
out quotes :(


Jeremy Kuhnash wrote:
> To get yourself rolling on the real task at hand, I would say to write a 
> task that performs whatever the .bat does and go from there, Jetspeed 
> build.xml runs Tomcat in this manner instead of exec'ing the run.sh
> 
> Cheers,
> Jeremy
> 
> 
> At 04:57 PM 7/29/2002 +0100, you wrote:
> 
>> Hi,
>>
>> I need to get quotes in arguments to an exec command.  In order for 
>> the command to work, the -classpath argument needs to be in quotes.  
>> Don't ask me why, it just does :)
>>
>> this is what I have in my build.xml
>>
>>       <exec executable="D:\java\jwsdp-1_0\bin\xrpcc.bat">
>>          <arg line="-server" />
>>          <arg line="-classpath 
>> &quot;D:\projects\coffeebreak-common\target\coffeebreak-common-1.0.jar;target\classes&quot;"/>

>>
>>          <arg line="-d target\classes" />
>>          <arg line="conf\config.xml" />
>>       </exec>
>>
>> but as you can see from the debug, the quotes are missing from 
>> executed command.
>>
>> [exec] [DEBUG] Execute:Java13CommandLauncher: 
>> D:\java\jwsdp-1_0\bin\xrpcc.bat -server -classpath 
>> D:\projects\coffeebreak-common\target\coffeebreak-common-1.
>> 0.jar;target\classes -d target\classes conf\config.xml
>>
>> if I run the exact command above with quotes from cmd, everything 
>> works fine.
>>
>> thanks
>> Nathan
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> <mailto:ant-user-unsubscribe@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <mailto:ant-user-help@jakarta.apache.org>
>>
> 
> 
> -- 
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 



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