ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ultra Funkular <funku...@nettaxi.com>
Subject Re: Using "-projecthelp" in a target
Date Wed, 19 Jun 2002 00:15:06 GMT
I always preferred making a "usage" target.  Since there isn't am 
attribute in Target to define whether it is public/protected/private yet.

-projecthelp will always output every target available, even those a user 
of a buildfile would not be interested in.

T Master



On Tue, 18 Jun 2002 18:14:35 Erik Hatcher wrote:
> You'd have to use <exec> or <java> to accomplish it.  It would be a
> semi-ugly hack.
> 
> You'd have to dig into the API some to see if the info is available to a
> task, and if so a task could be written that did the same thing
> as -projecthelp.
> 
>     Erik
> 
> 
> ----- Original Message -----
> From: "Michael Leo" <mleo@cariboulake.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Tuesday, June 18, 2002 7:11 PM
> Subject: Using "-projecthelp" in a target
> 
> 
> > Gang,
> >
> > I searched the archive, but no joy.
> >
> > For years I have had a practice of making my default
> > target (in both Ant and make) be a "help file".
> >
> > So when someone comes to a directory and sees a build.xml
> > file or a Makefile, they type "ant" or "make" and get a
> > "help listing" like this:
> >
> >      Build file for project CoolNess
> >
> >      Available targets are:
> >
> >         help    - what you are reading now
> >
> >         build   - compile and link the CoolNess source
> >
> >         test    - run the CoolNess regression tests
> >
> >         release - release this version of CoolNess
> >
> >         clean   - remove non-source files from the CoolNess tree
> >
> > It occurred to me that
> >
> >    ant -projecthelp
> >
> > does essentially this.  So I wanted to make the default target
> > in my build.xml file execute "ant -projecthelp", but I cannot
> > seem to figure out how to do it.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Michael Leo            mleo@cariboulake.com        Java, Oracle
> > Caribou Lake Software  http://www.cariboulake.com  Ingres, JDBC
> >
> > JSockets/JMobility: Tunnelling sockets over HTTP - REALLY!
> >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message