ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Issues with <java> vs <exec>
Date Fri, 14 May 2004 12:04:20 GMT
<exec ... >
  <env key="CLASSPATH"
path="${clink_jar}:${xerces_jar}:${xml_jar}:${classes}"/>
  ...
</exec>

Does that work?

Jan


> -----Original Message-----
> From: Robert Mark Bram [mailto:relaxedrob@optusnet.com.au]
> Sent: Friday, May 14, 2004 2:02 PM
> To: Ant
> Subject: Issues with <java> vs <exec>
> 
> 
> Hi All!
> 
> So far I have the following target to run a GUI in a separate 
> JVM that 
> will outlast Ant:
> 
> <target name="tickerclock">
>     <java classname="clock.TickerClock"
>           classpath="${clink_jar}:${xerces_jar}:${xml_jar}:${classes}"
>           fork="true"
>           spawn="true">
>     </java>
> </target>
> 
> 
> 
> I have two problems:
> 1) How can I have it open a new command window to do this?
> 2) How can I specify the name of the new command window (or 
> just the gui's 
> frame)?
> 3) How can I send the output to a file?
> 
> I was using this instead:
>     <exec executable="java">
>        <arg line="-classpath 
> ${clink_jar}:${xerces_jar}:${xml_jar}:${classes} 
> clock.TickerClock 'Ticker 
> Clock'"/>
>     </exec>
> 
> But the problem I found was the path separator in this form is *not* 
> portable.. i.e. I am back to using ":" for Linux and ";" for Windows..
> 
> 
> Rob
> :)
> 
> -- 
> Robert Mark Bram
> B.Comp.(Systems Development/Business Systems)
> B.Net.Comp.(Hons)
> Doctor of Philosophy Student
> 
> School of Network Computing
> Faculty of Information Technology
> Monash University
> Peninsula Campus
> McMahons Rd
> Frankston, VIC 3199
> AUSTRALIA
> 
> Phone:  61 3 9904 4394
> Facsimile:  61 3 9904 4124
> Email: robert.mark.bram@infotech.monash.edu.au
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message