gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Help needed
Date Mon, 15 Mar 2004 08:38:09 GMT
On Mon, 15 Mar 2004, Niclas Hedhman <> wrote:

> Can someone explain, in layman's words, what "<home/>" and "<work/>"
> is for ?

<home/> doesn't do anything.  Well, almost.  It serves as a prefix for
the paths you use in <jar/> and it sets the reference point for
projects using <property reference="home"/>.

<work/> adds things to the CLASSPATH before Ant is started.  Use this
if you need classes that are just going to be compiled in the same
run.  For example if you create an Ant task that you want to execute
or if you compile tests which will need the main classes to compile.

<work/> can point to a directory or a jar, to everything that is
leagal in a CLASSPATH env variable.  Making it point to a jar is
considered cheating, though. 8-)

If you need a directory pointed to with <work/> for anything other
than a forked <junit/> or a forked <java/>, pair it with a
corresponding <mkdir/>.  The JVM is going to drop it from the
CLASSPATH if the directory doesn't exist, making the entry unavailable
to the VM running Ant.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message