ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krishanu Lahiri <klah...@bizagile.com>
Subject Conditional target execution
Date Thu, 08 Mar 2001 05:01:28 GMT
How does one allow a target to be executed only if a previous target has
completed ?

Specifically, I have

<target  name="compile"  >

<target  name="unittest" depends="compile" >

<target  name="deploy" depends="unittest" >

How do I allow target "deploy" to be executed ONLY if target "unittest"
completed successfully.

I am running the <junit> task in the "unittest" target. This target
always seems to complete even if the actual test failed.

Any help will be highly appreciated.

Thanks

-Kris


Mime
View raw message