ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wannheden, Knut" <knut.wannhe...@paranor.ch>
Subject RE: exec / arg problems
Date Mon, 29 Jul 2002 14:02:06 GMT
I'd try something like:

<exec executable="D:/java/jwsdp-1_0/bin/xrpcc.bat">
 <arg value="-classpath"/>
 <arg
path="D:/projects/coffeebreak-common/target/coffeebreak-common-1.0.jar;targe
t/classes"/>
 <arg line="-server -d target/classes conf/config.xml"/>
</exec>

Note the different attributes used with <arg>.  changing from \ to / is not
really necessary, just matter of taste and style ;-)

--
knut

> -----Original Message-----
> From: Nathan Coast [mailto:nathan.coast@blueyonder.co.uk]
> Sent: Montag, 29. Juli 2002 15:47
> To: Ant Users List
> Subject: Re: exec / arg problems
> 
> 
> I belive the problem is something to do with there being 
> multiple parts to the 
> classpath argument.
> 
> Tibor Strausz wrote:
> >     <exec dir="." executable="cmd" 
> >      failonerror="yes">
> >     <arg line="/C net start iisadmin"/>
> >     </exec>
> > 
> > tibi
> > 
> > 
> >>-----Original Message-----
> >>From: Nathan Coast [mailto:nathan.coast@blueyonder.co.uk]
> >>Sent: Monday, July 29, 2002 3:17 PM
> >>To: ant-user@jakarta.apache.org
> >>Subject: exec / arg problems
> >>
> >>
> >>Hi,
> >>
> >>the following exec doesn't work
> >>
> >>       <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 the following cmd line does - I would have expected the 
> >>two to be equivalent.
> >>
> >>D:\projects\jaxrpc-coffee-supplier>d:\java\jwsdp-1_0\bin\xrpcc
> >> -server 
> >>-classpath 
> >>"d:\projects\coffeebreak-common\target\coffeebreak-common-1.0.
> >>jar;target\classes" 
> >>   -d target\classes conf\config.xml
> >>
> >>if the classpath arg has only one part the ant exec works, 
> >>but when running from 
> >>the cmd, the size of the classpath has no effect on execution.
> >>
> >>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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message