My first suggestion would be to try something like the GET task (may have to use one of the add-on try/catch tasks to wrap it if the url isn't accessible. Alternatively there are some command line tools to list running processes (or open windows) on windows; and you could try writing something to parse those.

Peter Neu wrote:

Thanks. This solved the problem.

One last thing: How can I test if Tomcat is still runnig in order to invoke
first the shutdown.bat before I proceed ?


Robert Kolev schrieb:

Try this...


<exec executable="cmd.exe" dir="C:/Programme/Apache Software Foundation/Tomcat 5.0/bin" os="Windows XP" failonerror="true"> <arg line="/c startup.bat"/> </exec>

Cheers, rk~

-----Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 9:30 AM
To: Ant Users List
Subject: Re: Fwd: Problem with exec Windows XP


Hello Alexey,

could you just post the correct command ? This would help a lot.

Regards,

Peter



To launch batch files you need to execute cmd.exe with correct parameters ("/c" and "startup.bat"). You cannot execute the batch files themselves.

- Alexey.

Peter Neu wrote:



Hello everybody,

I'm having difficulties using <exec> with Windows XP. When I'm trying
to run an Ant Script with a command like this :

<exec dir="C:/Programme/Apache Software Foundation/Tomcat 5.0/bin" executable="startup.bat"
os="WindowsXP">


     </exec>

simply nothing happens. I don't even get a warning. Can anybody tell me what
I did wrong ?


Best Regards,

Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-----------------------------------------------------------------------

-


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is confidential privileged and/or exempt from disclosure under applicable law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- Robert r. Sanders Chief Technologist iPOV www.ipov.net


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to