I am currently using MyEclipse to develop a web application that I intend to
deploy on a hosted site. As I am doing my development I am using a local installation of Tomcat to do my testing. So far so good.
I noticed that when MyEclipse deploys to the local server it deploys the application as a file tree directly to the ROOT context. So far so good.
What I want to be able to do, is this:
1) create a distribution directory to stage the site.
2) copy WEB-ROOT/* to the distribution directory
3) compile all the Java source sending the class files to {distribution.directory}/classes preserving the package directory trees.
4) scp the results over to the remote web site.
I used to do this under Netbeans by extending the build.xml file that it provides with the code to scp the files over (rsync actually, but that’s another story). The ant build file did the rest anyway (and built a war file.)
Short of creating a custom ant script, anybody have any pointers on how to get this done?
Peter L. Berghold — Unix Curmudgeon
http://www.berghold.net (personal site)
http://www.agilitystewards.org (my project)