ant jar two base directories

i'm writing an ant script that will jar the java .obj classes in the {classes} directory and the jar files in the {lib} directory.

my ant script is as follows

<target name="compile" depends="init" description="compile the source " >

<echo message="compiling java source files" />

<javac srcdir="${src}" destdir="${classes}" />

<jar destfile="${classes}/MyApp.jar" basedir="${classes}" includes="**/*.class">

<include name="build"/>

<manifest>

<attribute name="Main-Class" value="MyApp"/>

<attribute name="Class-Path" value="../lib/activation.jar ../lib/log4j-1.2.8.jar ../lib/mail.jar ../lib/xercesImpl.jar ../lib/xmlParserAPIs.jar " />

</manifest>

</jar>

</target>

how do i incude the baselib to look in two directories instead of one?

current;ly..it look at classes directory

[940 byte] By [tnguyen1973] at [2007-9-30 22:28:39]
# 1
I am guessing that is not possible.You can do it on the command line, but I suspect it just isn't normally done.Solutions:1. Change the compile so the classes all end up in the same root dir.2. Copy the class files to a common root dir.
jschell at 2007-7-7 12:51:58 > top of Java-index,Security,Event Handling...
# 2

jschell,

unfortuanetly that's what's i resorted to.

1. copy the jar file to classes directory

2. compile the the java src file (obj file --> classes director)

3. jar the classes directory contents

4. delete all files in classes directory (except for the newly created jar file)

tnguyen1973 at 2007-7-7 12:51:58 > top of Java-index,Security,Event Handling...
# 3
> unfortuanetly that's what's i resorted to.Usually I prefer to have a seperate build space anyways. It makes clean up a lot easier. It is also easier to exclude stuff.
jschell at 2007-7-7 12:51:58 > top of Java-index,Security,Event Handling...