ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark C. Prins, CARIS bv." <mark.pr...@caris.com>
Subject RE: Use bat-file with exec
Date Wed, 16 Jan 2002 16:13:11 GMT
the batch file _is_ the executable.
you could also try:

	<exec
		executable="C:\Program Files\JavaSoft\JRE\1.3.1_01\bin\java.exe" 
		os="Windows NT, Windows 2000">
  		<arg value="-jar"/>
  		<arg value="-Duser.dir=C:\Program Files\Apache Tomcat 4.0"/>
  		<arg value="C:\Program Files\Apache Tomcat 4.0\bin\bootstrap.jar"/>
  		<arg value="start"/>
	</exec>

> -----Original Message-----
> From: Peter Kesch [mailto:kesch@swt.ruhr-uni-bochum.de]
> Sent: Wednesday, January 16, 2002 10:15 AM
> To: ant-user@jakarta.apache.org
> Subject: Use bat-file with exec
> 
> 
> I try to stop and restart the tocat WebServer by Ant.
> But with
> <exec executable="cmd.exe">
>     <arg value="${tomcat}\bin\startup.bat" /> i also tried <arg 
> value="c:\tomcat-3.2.3\bin\startup.bat" />
> </exec>
> 
> it doesn't work.
> 
> i see only the message of cmd and than it hangs.
> With STRG+C i can break it but TOmcat isn't started.
> 
> Has anyone a Hint 
> 
> Peter
> 

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