need help

Hi there

I have a small problem?

I am writing a java project which is based on a web application which uses XML bulid file.

In other words the Project has a build.xml file wich is used to configure the settings of the project .

The project is compiled using ant tool.

The problem I have is that One of the classes in the project uses a .txt file.

When the project is compiled using ant tool it creates all the .class files needed for the deployment of the web application.

but after the project is compiled it is than compresed into a .war file which is later used to deploy the web application into the tomcat server.

So my question is how do I sent the folder containing the .txt file which is used by one of the classes to the folder in the tomcat directory in order for the deplyed class that uses that .txt file to be able to succesfully access the .txt file?

Do you guys think that I need to change the build file that comes with the project, and if so how do I change the built.xml file?

Please, if you think that I need to give more information about the problem do not hasitate to tell me so....

cheers

[1212 byte] By [thebond771] at [2007-9-30 4:18:29]
# 1

If I understand you correctly, the build.xml for the project is neglecting to include a folder with a .txt file in the war? Was this folder/txt file added after the build was coded? The best way to get the folder to the right place is to modify the build. Unfortunately that means you'll need to know a little about Ant. That's not necessarily a bad thing since Ant is the de-facto build tool used in Java development. I don't know enough about your project to tell you how to modify the build. It would probably be too involved for you to explain it to me or anyone else here enough for comprehension. That means it's up to you to figure out what point in your build is generating the output heirachy which is reflected in the war and add a <copy> task somewhere in it. If you want to take a crack at explaining more go ahead but I would know where to tell you to begin.

DizzyDiz76 at 2007-7-1 12:33:01 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Hi Dizzydiz76First of all I want to thank you for your respond therefore help.After I read some specific materials I now know how to solve the problem...Thanks for your help...
thebond771 at 2007-7-1 12:33:01 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...