My project structure has these base packages.
- a.b.c.core
- a.b.c.web
- a.b.c.common
And core,web,common packages will have sub packages. I have compiled all the java files under src dir and copied the class files to a dir.
<javac srcdir="${src}" destdir="${build}/myapp" debug="true">
<classpath refid="compile.classpath"/>
<classpath refid="ant.classpath" />
</javac>
Now i want to build a jar say core.jar with class files belonging to a.b.c.core and its subpackages. Similarly a web.jar and common.jar. Can someone give a sample code for jar task to accompolish this?
Thanks