ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DevKon" <>
Subject Re: <classpath> and <path> -
Date Wed, 31 Dec 2003 19:38:43 GMT
Thanks for the response, your time and effort is greatly appreciated.

I have been looking at the Ant docs  - is where I took the code
snippets from.  I have to admit my question was not clear- going trough
tutorials gives me a headache.  I like very concise, formalized

Re <path>:
I've been looking for a description (similar to DTD or XSD) of the
build.xml file, haven't been able to find one.

The manual states that  a project consists of targets, targets are composed
by tasks etc, so I would expect nothing but target definitions within a
<project> tag . I have been looking at the docs and I DON"T SEE <path> tag
explanation or definition; the fact that I could actually define <path> tag
within the <project > tag in my tests confuses me. I understand - I can
define PATHs and have IDs for referrence purposes, but ... I would like to
see definition - black on white

Re <classpath>:
I've seen many build.xml examples referring to a "classpath" property and no
property definition at all within the file. In fact, I couldn't find any
example (google) having defined that property, which lead me to believe that
"classpath" (just like the <path> tag) is something legit in Ant and I just
couldn't find a description for.

I looked at the chapter again ( ) and don't see <path> tag
definition. The notion of path-like structure is clear. The fact that some
tasks (<typedef> <taskdef>) have "path" and/or "classpath" attributes is
clear. I haven't tried but I thing that path-like structures was meant as
datatype description for such attributes.

Am I correct or not?


----- Original Message -----
From: "Erik Hatcher" <>
To: "Ant Users List" <>
Sent: Wednesday, December 31, 2003 11:43 AM
Subject: Re: <classpath> and <path> -

> On Dec 31, 2003, at 10:53 AM, DevKon wrote:
> >
> > Regarding <classpath> :
> >
> >> From the manual:
> >
> > ////
> >    <classpath>
> >       <pathelement path="${classpath}"/>
> >     </classpath>
> > ///
> >
> > What is ${classpath} referring to?
> It is an Ant property reference.
> >  Also, how do I get to print variables or properties
> > <echo>${classpath}/<echo> prints "${classpath}", how do I get the
> > actual value?
> In this case, the actual value is undefined, that is what it means when
> you see the property echo'd like that.  The Ant property has not been
> defined in the build file.
> > Regarding <path>:  what is <path> exactly - a type, a task etc.  I see
> > path definitions in various example scripts but haven't seen a formal
> > definition in the docs.
> <path> is a data type.  In the docs it is called a "path-like
> structure".  It is documented here:
> I haven't plugged our book in a long long time, but I just saw a nice
> mention of it in the blogworld today:
> <
> 20031231#java_development_with_ant_good>
> I definitely recommend it for learning the Ant basics!  :)
> Erik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message