After further contemplation I realized that the mailreader application is in WAR format. I'm guessing that during development, what is under the ant "build" directory is WAR format. So the example applications are equivalent to what would be under the "build" directory, plus the java code. (at least I think this is correct)

So if I want to use the example application as a base for development, what is the best advice ? To manually create the expected ant directories and copy the example files to the correct location?

Or is there a blank application already laid out to make ant happy?

Rick Schumeyer wrote:
I'm trying to get into the struts game, which means I'm simultaneously trying to come up to speed on at least three Apache projects: tomcat, ant, and struts. Plus servlets and jsps. I'm sorry if this is a basic question, but I'm a little flustered.

Ant seems to expect a certain directory structure under the build.xml. I'm not sure if this it *has* to be this way or if the underlying directory structure is configurable. As far as I can tell, ant wants something like:

./build.xml
./build.properties
./src: (all java files go here, under something like com.mycompany.whatever )
./web:
./web/WEB-INF:

But the example mailreader application looks like this: (some stuff ommitted)

./WEB-INF:
./WEB-INF/classes:
./WEB-INF/classes/*:
./WEB-INF/entities:
./WEB-INF/lib:
./WEB-INF/src:
./WEB-INF/src/java:
./WEB-INF/src/java/*:  all java files are here

So my question is, what am I missing? Surely ant must be able to compile the default struts applications, which probably means I need a different build.xml file. However, I haven't found any guidance on this matter by searching the apache site.

Any help is appreciated!




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to