ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Glick <Jesse.Gl...@netbeans.com>
Subject Re: [RFE] Default Help target on error ?
Date Fri, 28 Jul 2000 18:02:32 GMT
Stefan Bodewig wrote:
> <target name="check">
>   <available name="java1.2" classname="java.lang.ThreadLocal" />
> </target>
> 
> <target name="dieIfCheckFailed" unless="java1.2">
>   <die message="Need JDK >= 1.2 to work" />
> </target>

I like this style...if a command I need for a build to finish simply
isn't there, I want to build to stop, immediately, with non-zero exit
status. A <die> task would be trivial to write and I would use it at
least.

BTW +1 also on <help>How to use me...</help> syntax, it's a neat idea.

-Jesse

-- 
Jesse Glick   <mailto:Jesse.Glick@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Mime
View raw message