我有一个在unix上执行的ant代码。在其中一个目标中,构建失败,但在控制台中,将跳过当前目标中的后续步骤,但在失败的目标执行后将其跳过目标。
**BUILD FAILED**
/irb/cst/install/scripts/installer.xml:386: The following error occurred while executing this line:
/irb/cst/install/scripts/installer.xml:597: The following error occurred while executing this line:
Total time: 1 second
Starting process Finalize staging (10/13)
\t Installation type is UPGRADE \n
Buildfile: ./install/scripts/installer.xml
check-pf:
[echo] verifying whether Platform already extracted or not /irb/cst/cst2/workareas/schu/GUItest/STAGE
[echo] pf.present value true
[echo] (tmp.unpack.dir) Platform extracted at /irb/cst/cst2/workareas/schu/GUItest/TMP
在上面的日志中,第一个目标失败,但构建继续第二个目标。
<if>
<equals arg1="${commonCompareVersionsRC}" arg2="0"/>
<then>
<property name="buildstatus" value="true"/>
<echo> @@@ ${buildstatus} </echo>
<echo>ERROR - Cannot be Migrated backwards from higher version to lesser version.Exiting...</echo>
<var name="commonCompareVersionsRC" unset="true"/>
<fail message="Need to have a newer version for the @{component} package . Installed version:${@{component}_DBPKG_VERSION}, migrating to version:${Installingversion}"/>
</then>
</if>