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: Suppressing DOS window when calling Ant from Java

2004-11-15 Thread Laconia Data Systems
start /B Dont ask me how I know that- Martin- - Original Message - From: "Sharad Jain" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 15, 2004 6:00 PM Subject: Suppressing DOS window when calling Ant from Java > I am trying to embed Ant into my application. > The foll

Suppressing DOS window when calling Ant from Java

2004-11-15 Thread Sharad Jain
I am trying to embed Ant into my application. The following code gives me what I need. executeAnt(String antfile, String target, PrintStream myOut, PrintStream myErr, int logLevel) { ProjectHelper helper = ProjectHelper.getProjectHelper(); Project project = new Project(); proj

Re: Fwd: Problem with exec Windows XP

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

Re: Fwd: Problem with exec Windows XP

2004-11-15 Thread Peter Neu
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... Cheers, rk~ -Original Message- From: Peter Neu [mailto:[EMAIL PROTECTED] Sent: Monday, Novembe

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

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: Escapign backslash in java.home

2004-11-15 Thread Peter Reilly
What is wrong with the following? java.home is ${java.home} If you wanted to replace \ with \\, you could use a scriptfilter: self.setToken(self.getToken().replace("\\", "")); \a\b\c Peter Thomas Saxtoft wrote: On a Windows XP I

RE: Escapign backslash in java.home

2004-11-15 Thread Conelly, Luis (GE Energy, Non GE, GENE)
why don't you use forward-slashes instead backslashes? It is the same for Java and it fits on Win & *nix systems; of course, it won't work the same on any OS, since in Win you have this horrible drives concept (C: D: etc) i.e (for Win) java.home=C:/j2se1.4.2/bin (for *nix) java.home=/usr/local

Escapign backslash in java.home

2004-11-15 Thread Thomas Saxtoft
On a Windows XP I have to write the java.home property to a file, but doing that the '\' disappears. I suspect that it needs to be escaped like '\\', but the value of java.home is the one that contains the backslash. How do I write it to the file? The next thing is, how do I make it general so tha

QUERY:Exporting a digital signature generated from genkey

2004-11-15 Thread William Fitzgerald
Hi all, I would like to be able to export my certificate(that is create one) so that others can use it to allow my jars access to system resources and to allow users to verify that the jar is in fact mine. on the command line,you would use the java commands for example: (1) jar cvf Count.jar Coun