You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2004/03/15 08:48:13 UTC

Help needed


Can someone explain, in layman's words, what "<home/>" and "<work/>" is for ? 
I have read the docs over and over, and it doesn't give me a clue... :o(  
Maybe I am "Too dump for Gump"...

Cheers
Niclas
-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: Help needed

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 15 Mar 2004, Niclas Hedhman <ni...@hedhman.org> wrote:

> Q 1; what is <work> relative?

See answer to Q 2.

> Q 2; what does nested vs parent mean?

nested means relative to the srcdir of your project.  The srcdir is
the root of the checked out CVS/SVN module.

parent means relative to the value given in the basedir attribute of
the workspace definition of this Gump instance.  Usually, one level
higher than the srcdir, but it doesn't have to be.

I'm not aware of any descriptors using the parent attribute.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: Help needed

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Monday 15 March 2004 16:38, Stefan Bodewig wrote:
> On Mon, 15 Mar 2004, Niclas Hedhman <ni...@hedhman.org> wrote:
> > Can someone explain, in layman's words, what "<home/>" and "<work/>"
> > is for ?

<snip>

Thanks for the explaination.

Q 1; what is <work> relative?
Q 2; what does nested vs parent mean?

Cheers
Niclas

-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Re: Help needed

Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 15 Mar 2004, Niclas Hedhman <ni...@hedhman.org> 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.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org