Hello Shreedhar,

--- shreedhar natarajan <[EMAIL PROTECTED]> wrote:
> 
> prompt>>ant -projecthelp
> Buildfile: build.xml
> 
>         Sample ant file for demonstration purpose
> 
> Main targets:
> 
> Other targets:
> 
>  ant_sample
>  import_ant
>  say_hai
>  spawn_ant
> Default target: ant_sample
> 
> Now what is the diff. between Main targets and Other
> targets. 
Main targets are those that have "description"
atrribute:

<target name="mytarget" description="mytarget"/>

is considered main target.

> How do I make a target as Main target
By adding a non-empty description attribute.

> what is the purpose of it ?
Well, it is supposed that you are going to add
description to the important targets and leave the
other with no description. It is not alway the case -
I tend to describe all targets. 

I like "description" attribute more than XML comments,
becuase they are shown by ant -projecthelp and I can
get an idea what the targets do without reading the
build script.

Regards
Ivan


                
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to