You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Steve Collins <sc...@bea.com> on 2004/05/06 19:27:08 UTC

RE: task in backgraound

Where is stderr and stdout redirect by the spawned java process since output and error attributes of the java task are not supported?

Thanks
-Steve

> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Friday, April 16, 2004 3:55 AM
> To: user@ant.apache.org
> Subject: RE: <java> task in backgraound
> 
> 
> <java spawn="true"> like the manual sais (1.6).
> 
> Jan
> 
> > -----Original Message-----
> > From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com]
> > Sent: Friday, April 16, 2004 9:02 AM
> > To: Ant Users List
> > Subject: <java> task in backgraound
> > 
> > 
> > Dear colleagues, 
> > I created the foloowing task to start tomcat:
> >     <target name="start-tomcat" depends="-init"
> > description="Starts Tomcat">
> >         <java
> > classname="org.apache.catalina.startup.Bootstrap"
> > fork="yes" failonerror="yes">
> >             <classpath>
> >                 <pathelement
> > location="${catalina.home}/bin/bootstrap.jar"/>
> >             </classpath>
> >             <arg value="start"/>
> >             <sysproperty key="catalina.home"
> > value="${catalina.home}"/>
> >         </java>
> >     </target>
> > 
> > It works pretty well, but when I invoke it, it blocks
> > the console in which I started it. How can I configure
> > it to run in background?
> > 
> > Both Ant 1.5.3 and Ant 1.6.0 solution wil be
> > appreciated.
> > 
> > Regards Ivan
> > 
> > 
> > 	
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
> > http://taxes.yahoo.com/filing.html
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 

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


RE: task in backgraound

Posted by Matt Benson <gu...@yahoo.com>.
--- Steve Collins <sc...@bea.com> wrote:
> 
> Where is stderr and stdout redirect by the spawned
> java process since output and error attributes of
> the java task are not supported?

They vanish into the ether.  See Execute.spawn() ;)

-Matt


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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