Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Dale Anson
Why don't you just use the custom Ant tasks that come with Tomcat? See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html, then follow the link for "Executing Manager Commands With Ant". There are tasks for starting and stopping Tomcat, deploying and undeploying an application

Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Ivan Ivanov
--- Peter Neu <[EMAIL PROTECTED]> wrote: > Ok, maybe you are right. Is there any possibility to > enforce the delete ? > Peter, I do not know that. There have been threads on the list about deleting on Windows XP. __ Do You Yahoo!? Tired of spam?

Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Peter Neu
Ok, maybe you are right. Is there any possibility to enforce the delete ? The only problem with this approach is that Tomcat is still holding on to the application files when I try to remove them and replace them with the newer version. Does anybody have an idea how to work around this probl

Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Ivan Ivanov
> > The only problem with this approach is that Tomcat > is still holding on > to the application files > when I try to remove them and replace them with the > newer version. > > > > > Does anybody have an idea how to work around this > problem ? Hm, are you sure Tomcat holds them. I us

Re: Fwd: Problem with exec Windows XP

2004-11-16 Thread Peter Neu
OK. I tried to work you suggestions into my buildfile. My idea is to keep tomcat up and running and simply restart the catalina process: This saves some time. Then I just put in the sync-block you suggested: http://localhost:5050/ae/"/> And afterwards I start a browser to display the

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Ivan Ivanov
Hello Peter and Igor, Here is a code the makes a slightly different task - it checks whether a war file has been deployed correctly using task [1] and [2] condition: http://localhost:${install.port}/${install.context}/index.jsp"/> Besides condition you

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Igor A. Deruga
Hello, Peter! As far as I remember, I used to stop Tomcat before building project and start it after the build. If it isn't currently running, the stop task would fail, but nothing bad would happen. So you just try to stop it and then - start it. I don't think that it's a good idea to look at

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Robert r. Sanders
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

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Peter Neu
, 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.ba

RE: Fwd: Problem with exec Windows XP

2004-11-15 Thread Robert Kolev
Try this... 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

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Peter Neu
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

Re: Fwd: Problem with exec Windows XP

2004-11-14 Thread Alexey N. Solofnenko
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 with Windows XP. When I'm trying to run an Ant Script with a command like

Re: Fwd: Problem with exec Windows XP

2004-11-14 Thread Peter Neu
Thanks Ivan. I will try this one. Regards. Peter Ivan Ivanov schrieb: Hello Peter, I do not know why you exec does now work, but assuming that you are trying to start Tomcat, why do not invoke it via & tasks like this:

Re: Fwd: Problem with exec Windows XP

2004-11-14 Thread Ivan Ivanov
Hello Peter, I do not know why you exec does now work, but assuming that you are trying to start Tomcat, why do not invoke it via & tasks like this: You can later invoke the macordef li