hello all,
I have the package hierarchy like this,
src
- com.test.servlets -> contains all the
servlet sources (*.java).
- com.test.beans -> contains all the bean sources (*.java).
with '
ant' build tool, i compiled all the files and store the class files in the 'build' folder. Then the build folder will be,
build
- com.test.servlets -> contains all the class files of servlets (*.class).
- com.test.beans -> contains all the class files of beans (*.class).
What i need to do,
I need to
fetch the class files from the build folder and bundle the web contents(servlets,
jsp, images) in the web archive (.war)
and
I need to bundle the beans(core business classes and interfaces) in generic archive (.jar).
[Note: In both archives, the package hierarchy should be the same (in the above) ]
How it can be done?
Thank You!