Archive: Checking when Apache has deployed .war file


Checking when Apache has deployed .war file
Hi,

Does anyone know or a way to check if a war file has been deployed by apache, we tend to drop the war file into the apache directory and it automatically deploys it.

thanks

Lee


${If} ${FileExists}? :weird:


That did occur to me but i was hoping there was a better way of finding out when it had finished, it takes on my machine about 45 minutes to deploy.

My problem is,

The installer i am creating deploys the war file but then i need to alter xml files with information from the user. I may have to just use if fileexists... :(

Lee

Originally posted by pospec
${If} ${FileExists}? :weird:
;)

Can you stop Tomcat (e.g. using a service management plugin for NSIS), then use an UnZip plugin to explode the warfile yourself, then make the modifications, then start Tomcat?

The above is what I do (But I have the luxury of being allowed to stop the Tomcat process or service)

WAR files are just zip files, so any unzip utility can work with them.


Yes,

I could stop tomcat and unzip the file.

Do you by anychance have the code you wrote to do this?

Saves me doing it :)

Thanks

Lee