You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Anthony Gawlikowski <ag...@projector.com> on 2001/03/07 10:20:15 UTC

Two newbe questions

Greetings!
Please accept my apologies for asking such basic questions.

Question 1:
What's the difference between main targets and subtargets? (I just
couldn't find an answer anywhere)

Question 2:
In the ant 1.2 doc it reads:

> A project has three attributes:
> Attribute  Description                               Required
> name         the name of the target.            Yes

Shouldn't that be "the name of the PROJECT" under "Description"

Many thanks in advance for answering.
-- Anthony


Re: Two newbe questions

Posted by Stefan Bodewig <bo...@apache.org>.
Anthony Gawlikowski <ag...@projector.com> wrote:

> Thanks Stefan for answering.
> 
> Here's the context you need:
> 
> My call:
>> ant -projecthelp -buildfile buildJava.xml

I see. A "main target" has a description attribute, a "subtarget" has
not - no other technical difference.

-projecthelp expects the build file writer to add a description to
targets that can be invoked by the users and omit it on targets that
are only there for internal logic.

Stefan

Re: Two newbe questions

Posted by Anthony Gawlikowski <ag...@projector.com>.
Thanks Stefan for answering.

Here's the context you need:

My call:
> ant -projecthelp -buildfile buildJava.xml

Ant's reply:

> Buildfile: buildJava.xml
> Main targets:
>
>
> Subtargets:
>
>  cleanJar
>  compile
>  distribute
>  javadoc
>  prepare
>  prepareJavadoc
>
>
> BUILD SUCCESSFUL
>
> Total time: 1 second
>

Note: I'm still using Ant 1.2
-- Anthony

Stefan Bodewig wrote:

> Anthony Gawlikowski <ag...@projector.com> wrote:
>
> > Question 1:
> > What's the difference between main targets and subtargets? (I just
> > couldn't find an answer anywhere)
>
> Where did you find these terms? There is no defintion for them that I
> was aware of, so we probably need some context.

...

> Stefan


Re: Two newbe questions

Posted by Stefan Bodewig <bo...@apache.org>.
Anthony Gawlikowski <ag...@projector.com> wrote:

> Question 1:
> What's the difference between main targets and subtargets? (I just
> couldn't find an answer anywhere)

Where did you find these terms? There is no defintion for them that I
was aware of, so we probably need some context.

> Question 2:
> In the ant 1.2 doc it reads:
> 
>> A project has three attributes:
>> Attribute  Description                               Required
>> name         the name of the target.            Yes
> 
> Shouldn't that be "the name of the PROJECT" under "Description"

Yes - it has even been fixed after the 1.2 release. The current Ant
release is 1.3 and it (correctly) says "the name of the project" as
well as "No" in the required column.

Stefan