struts build.xml and weird Ant behaviour.

J

jaba the hut

Hi all.

I'm starting with Struts and what better place than the struts-example
application

I had a look at the instructions at
http://jakarta.apache.org/struts/faqs/netbeans.html but I am
experiencng some weird Ant behavior when building the application.

My build.xml file is exactly as in
http://jakarta.apache.org/struts/faqs/netbeans.html with the exception
of the installation specific path differences.

As I understand it when Ant executes the 'war' target it is supposed
to copy the Application properties files to the WEB-INF/classes
directory so that Struts can find them and use them to display the
application's messages.

However, although Ant seems to copy the properties files as instructed
by the classes directive:
<classes dir="${build.dir}" includes="**/*.properties"/>

and as indicated by Ant's verbose output:
[war] adding entry
WEB-INF/src/org/apache/struts/webapp/example/ApplicationResources_ja.properties
[war] adding entry
WEB-INF/src/org/apache/struts/webapp/example/AlternateApplicationResources.properties
[war] adding entry
WEB-INF/src/org/apache/struts/webapp/example/ApplicationResources.properties
[war] adding entry
WEB-INF/src/org/apache/struts/webapp/example/ApplicationResources_ru.properties



....when I look in the
WEB-INF/classes/org/apache/struts/webapp/example/ they are not there
although the project's classes are... :-/

Here are the directory contents after the build:
@pluto:~/struts-example> ls
WEB-INF/classes/org/apache/struts/webapp/example/
ApplicationMapping.class LinkSubscriptionTag.class
SaveRegistrationAction.class
CheckLogonTag.class LinkUserTag.class
SaveSubscriptionAction.class
Constants.class LogoffAction.class
Subscription.class
EditRegistrationAction.class LogonAction.class
SubscriptionForm.class
EditSubscriptionAction.class memory User.class
ExpiredPasswordException.class RegistrationForm.class
UserDatabase.class



What is going on?


any hints much appreciated.

regards...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top