ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Duncan Davidson" <dun...@x180.com>
Subject Re: [RFE] Default Help target on error ?
Date Wed, 26 Jul 2000 03:10:58 GMT
on 7/25/00 5:14 AM, Nelson, Laird at Laird.Nelson@time0.com wrote:

>> -----Original Message-----
>> From: Peter Donald [mailto:donaldp@mad.scientist.com]
>> They don't want to read the
>> build file
>> (that come close to
>> 900 lines) to figure out what targets are available and which ones are
>> useful. Usually a project has a target named help - or
>> something similar.
> 
> Ooh, this sounds like a good idea.  I'd like to expand this idea a bit.
> 
> I think nmake allows a makefile to have a tiny bit of procedural logic in it
> that verifies that everything is in place and ready to go, and if it isn't,
> then it errors out with a message.  I'd love it if ant provided similar
> functionality.  What if this help idea and an
> error-out-if-platform-isn't-set-up-right functionality were combined?  Am I
> making sense?

Wha, like a <project> <requires>JDK 1.2</requires> </project> thought?

I'm not sure that's any better than having a "prep" target that all targets
register a dependancy for that does the same and bails on any prereq that
isn't there.

.duncan


Mime
View raw message