Old 24th October 2007, 10:44   #1
thedaddy110
Junior Member
 
Join Date: Oct 2007
Posts: 6
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
thedaddy110 is offline   Reply With Quote
Old 24th October 2007, 12:05   #2
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
${If} ${FileExists}?
pospec is offline   Reply With Quote
Old 24th October 2007, 13:13   #3
thedaddy110
Junior Member
 
Join Date: Oct 2007
Posts: 6
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

Quote:
Originally posted by pospec
${If} ${FileExists}?
thedaddy110 is offline   Reply With Quote
Old 26th October 2007, 14:17   #4
Kid Uncertainty
Junior Member
 
Join Date: Oct 2007
Posts: 1
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.
Kid Uncertainty is offline   Reply With Quote
Old 2nd November 2007, 09:07   #5
thedaddy110
Junior Member
 
Join Date: Oct 2007
Posts: 6
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
thedaddy110 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump