If you are using JDK 1.2+, the -extdirs option is supported within ant which does what you want
e.g.,
<target name="main" depends="prepare">
<javac
srcdir="src"
destdir="${dest.classes}"
extdirs="lib"
debug="on"
/>
</target>


At 20:21 12/04/00 +0200, Stefan Arentz wrote:
Folks,

Right now I'm using a build.sh wrapper that sets the correct
classpath for my project:

   #!/bin/sh

   CLASSPATH=/opt/tomcat/lib/servlet.jar

   for jar in lib/*.jar; do
     CLASSPATH=$CLASSPATH:$jar
   done

   ant $@

It would be nice to do things like this from build.xml.

Stefan

-- Fergus Gallagher Orbis http://www.orbisuk.com/ +44-(0)20-8987 0717



Reply via email to