ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Fail if <serverdeploy> task returns value 1
Date Tue, 09 Jul 2002 01:46:33 GMT
--- sunyj <sunyj@adtec.com.cn> wrote:
> Is it possible to cause the build fail if a <serverdeploy> task returns
> 1 in its exit code? Task <serverdeploy> has no property "failonerror".
                                                 ^[attribute]

But it does set one for the <java> task.

If you look at {Generic,Weblogic}DeploymentTool.java, you'll see it's
actually just creating a <java> task. The bad news is that it looks to be
hard-coded to "true" -- the good news is that since it's there, it
shouldn't be too difficult to add a 'failonerror' attr to <serverdeploy>
itself. It could probably get added for 1.6 (but unfortunately, not for
1.5, since that's inches away from being released) -- patches welcome. In
the meantime, you'll need to work it out locally -- or maybe you could
just use the <java> task directly instead for now.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
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