ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fergus Gallagher <Fergus.Gallag...@OrbisUK.com>
Subject Re: setting classpath from within build.xml
Date Thu, 13 Apr 2000 07:45:08 GMT
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


Mime
View raw message