ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rosenberg" <ja...@squaretrade.com>
Subject Re: force fail in script ?
Date Tue, 16 Jan 2001 17:05:21 GMT
Marco,

The way I force a fail is to instantiate a fail task object, call its
setMessage method, and then its execute method.

You can do the same type of thing with an echo task object.

Alternatively, you can call the project.log() method to output
stuff too.

Jason

----- Original Message ----- 
From: "Marco Struck" <M.Struck@PopNet.de>
To: <ant-user@jakarta.apache.org>
Sent: Tuesday, January 16, 2001 7:45 AM
Subject: force fail in script ?


> hi,
> 
> how can I force a fail (fail message) in <script> directly ? ... is that
> possible ?
> 
> B.t.w.: How can I print out messages from <script> ?
> 
>         System.out.println("Hello World !!!");
>    - seems not to work !?
> 
> 
> --
> Marco Struck
> 
> mailto:mstruck@popnet.de
> 


Mime
View raw message