Java Mailing List Archive

Apache Ant Archive

» Ant Users List
» Ant Developers List
directed exit of ant build?

directed exit of ant build?

2005-06-27       - By Mark Lundquist
Reply:     1     2     3     4  

Hi all,

Is it possible for a target to script the termination of the build?

I want something like this:

  <available file="config" property="config.dir.exists"/>
  <target "config" unless="config.dir.exists">
    <exec executable="svn">
      <arg line="export config.tmpl.config"/>
    <echo message="Edit the files in config/, then run Ant again."/>
       ********** Here I would like to abort the ant run! *********

any way to do this?  (sorry if it's a FAQ :-/)

©2008 - Jax Systems, LLC, U.S.A.