ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: keep going after error
Date Wed, 08 Feb 2006 14:13:50 GMT
AntContrib:<trycatch>


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: simon [mailto:simon.litwan@wyona.com] 
>Gesendet: Mittwoch, 8. Februar 2006 15:09
>An: Ant Users List
>Betreff: keep going after error
>
>hello list
>
>i have a target for a cruisecontrol test.
>
>  <target name="htmlunit-meta" description="htmlunit-meta target">
>    <echo>Starting Lenya..</echo>
>    <exec dir="${basedir}" resolveexecutable="true"
>executable="start-lenya.sh" spawn="true"/>
>    <sleep seconds="20"/>
>    <waitfor maxwait="40" maxwaitunit="second" checkevery="4000">
>        <and>
>          <socket server="192.168.100.108" port="8899"/>
>        </and>
>    </waitfor>
>    <ant dir="../../../test" inheritAll="false">
>      <property name="build.properties.file"
>value="adspotlight.build.properties"/>
>    </ant>
>    <echo>Stopping Lenya..</echo>
>    <exec dir="${basedir}" resolveexecutable="true"
>executable="stop-lenya.sh" spawn="true"/>
>  </target>
>
>it executes a shell scrip that start the webapp. then it uses 
>ant to test the webapp and after the test it should stop the webapp.
>
>it works fine as long as the tests are working fine, but as 
>soon a test fails the whole things is stoped and does not 
>execute the stop script for the webapp. but it is important 
>execute the last step even if the step before fails.
>
>does sombody have a hint for me?
>
>TIA
>
>simon
>
>-- 
>Simon Litwan                               simon.litwan@wyona.com
>Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
>http://www.wyona.com                      http://lenya.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
>additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message