sunyj | 9 Jul 03:00 2001
Picon

Fail if <serverdeploy> task returns value 1

Hi!
Is it possible to cause the build fail if a <serverdeploy> task returns 1 in its exit code?
Task <serverdeploy> has no property "failonerror". I want build process continue since
some tasks occur error.  How I  should do ?
Best regards!
Thanks!

Sunyongjing

sunyj | 10 Jul 13:37 2001
Picon

Re: failonerror=false

>     <javah>
>         ...
>     </javah>
>         ....
>         ....
> </target>
> 
> suggestions anyone??
> 
> Henning

You can use TryCatchTask  in ant-contrib. 

ANT Contribute project is here. You can get it through cvs.
http://sourceforge.net/projects/ant-contrib/


Or it can be directly downloaded here.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/ant-contrib/src/net/sf/antcontrib/logic/TryCatchTask.java?rev=1.1


For example:
<target name="javah-files" depends="init,classes">
  <trycatch> 
        <try>
           <javah>
            ...
          </javah>
        </try>
        <catch/>
        <try>
          <javah>
(Continue reading)

sunyj | 11 Jul 02:57 2001
Picon

Fw: failonerror=false


> >     <javah>
> >         ...
> >     </javah>
> >         ....
> >         ....
> > </target>
> > 
> > suggestions anyone??
> > 
> > Henning
> 
> You can use TryCatchTask  in ant-contrib. 
> 
> ANT Contribute project is here. You can get it through cvs.
> http://sourceforge.net/projects/ant-contrib/

> 
> Or it can be directly downloaded here.
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/ant-contrib/src/net/sf/antcontrib/logic/TryCatchTask.java?rev=1.1

> 
> For example:
> <target name="javah-files" depends="init,classes">
>   <trycatch> 
>         <try>
>            <javah>
>             ...
>           </javah>
>         </try>
>         <catch/>
>         <try>
(Continue reading)


Gmane