centipede query

Bharat <[email protected]> Mon, 18 Aug 2003 13:59:59 -0700 (PDT)
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Hi all:

In my Unix script, I am calling the "code" target. Here's what it looks like:

<target name="code">
  <antcall target="cleanCode"/>
  <antcall target="core"/>
  <touch file="${project.build}/successful.build"/>
  <antcall target="deploy-dev"/>
  <antcall target="buildSiteAfterDeploy"/>
</target>

Now here is a possible scenario:

1. The core target inturn does a compile and jar. Lets assume the compile fails. Then, will the rest of the contents of code target be executed after <antcall target="core"/>???

I want 

  <touch file="${project.build}/successful.build"/>
  <antcall target="deploy-dev"/>
  <antcall target="buildSiteAfterDeploy"/>
to be executed only is the previous target finished successfully. What is the easiest way to do this error handling?

Thanks in advance for your help.

Bharat


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software