This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant reload task works, but... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant reload task works, but..." Watch "Ant reload task works, but..." New topic
Author

Ant reload task works, but...

Ra Re
Greenhorn

Joined: Nov 13, 2009
Posts: 6
I am trying to deploy, undeploy and reload a Java EE Web application under Tomcat 6 using Ant 1.7.

All of these tree tasks are "working", deploy and undeploy are working as expected but reload does not..mmm...how to say that...does not.....reload?

Reading the Ant documentation I have found this:
# Reload not supported on WAR deployed at path /foo
Currently, application reloading (to pick up changes to the classes or web.xml file) is not supported when a web application is deployed directly from a WAR file. It only works when the web application is deployed from an unpacked directory. If you are using a WAR file, you should undeploy and then deploy or deploy with the update parameter the application again to pick up your changes.

So the question is, how can I deploy directly from an unpacked directory? I only know how to config the Ant deploy task using a WAR file, is that my mistake?

This is part of my build.xml:


By now, I have the update="true" attribute in the deploy task because reload does not work for me, but I would like to be able to remove it and use the reload task to update the changes on the application.

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant reload task works, but...
 
Similar Threads
Problems with Tomcat Ant Tasks
Ant list -- Build Failed
Regarding Ant issue.
Install task cannot find file
/build.xml:372: java.net.UnknownHostException: root +ant