I am using Eclipse Helios. I have a dynamic web project and I created Eclipse to use Ant Builder to create a WAR file. All of this works great; if I modify the .java file, Eclipse automatically runs my build.xml file through Ant and updates my WAR. If I use WAR for an external Tomcat instance, it works fine.
However, when I tell Eclipse to run my project under Tomcat, it does not use the WAR file generated by the Ant construct, or using my Ant script to create a temporary WAR.
I know this because my build.xml script file contains some additional XML configuration files in WEB-INF / WAR classes that do not end in the WEB-INF / classes directory, which preempts Eclipse.
I cannot find anything in Eclipse that says: "When you publish, use this WAR file instead of creating your own."
An alternative approach was to tell Tomcat when he creates a WAR for this by adding a list of files, but I also cannot find a way to do this.
I am also interested in how Eclipse knows what to publish as it explicitly ignores my build.xml file and my previously created WAR file.
source
share