I have the following deploy target it my build file which I run with:
ant.bat -emacs -find build.xml deploy
It works but I do get a warning that a compilation is already running when I
try to use compile the next time.
:-)
<target name="deploy" depends="war"
description="deploys the war file">
<exec executable="cmd" dir="${tomcat.dir}/bin" os="Windows NT">
<arg line=" /c shutdown.bat" />
</exec>
<exec executable="cmd" dir="${tomcat.dir}/bin" os="Windows 2000">
<arg line=" /c shutdown.bat" />
</exec>
<delete dir="${tomcat.dir}/webapps/${app}" />
<copy file="${app.war}" todir="${tomcat.dir}/webapps" />
<exec executable="cmd" dir="${tomcat.dir}/bin" os="Windows NT">
<arg line="/c startup.bat" />
</exec>
<exec executable="cmd" dir="${tomcat.dir}/bin" os="Windows 2000">
<arg line="/c startup.bat" />
</exec>
</target>
> -----Original Message-----
> From: burtonator [mailto:[EMAIL PROTECTED]]
> Sent: den 26 juni 2001 01:14
> To: [EMAIL PROTECTED]
> Subject: Re: restarting Tomcat with Ant using JDE
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Max Gravitt <[EMAIL PROTECTED]> writes:
> <snip>
> > What can I change so that after startup.bat is invoked, it
> returns control to
> > ant and then in turn to emacs?
>
> I assume you want to just compile and have Tomcat started in
> the background???
>
> Since I see you using startup.bat I will assume you are
> running Windows. Since
> cmd.exe doesn't have job control like a Real Operating System
> (TM), you have to
> trick it with a "start" command first:
>
> "start startup.bat"
>
> I believe that this should bring up another command prompt
> and ant will return.
>
> The only reason I know this is because I helped some Windows
> guys port Java code
> I wrote under Linux to Windows.
>
> Kevin
>
> - --
> Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED],
> [EMAIL PROTECTED] )
> Cell: 408-910-6145 URL: http://relativity.yi.org ICQ:
> 73488596
>
> 2600 Magazine says Ford sucks:
> http://www.fordreallysucks.com/more_info.html
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
>
> iD8DBQE7N8XOAwM6xb2dfE0RApNYAKCz1zEaQSqs75Tzn/1w53FoPcNeTgCeN6qH
> mLYfvcdAogijvVmwLFbTNQc=
> =g4XD
> -----END PGP SIGNATURE-----
>