blob: 77ce993d247971d6de3b1ebf839ee99fec2b6bef [file] [log] [blame]
<project
default="checkForFastFail"
basedir=".">
<target
name="checkForFastFail"
depends="checkReasonsToFastFail"
if="reasonFailed">
<echo message="${reasonFailed}"/>
<!-- copy early, if we can ... else site won't be created, when we fail -->
<ant antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
<fail message="${reasonFailed}"/>
</target>
<!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=339166 -->
<target
name="checkReasonsToFastFail"
if="checkForReasonsToFastFail">
<echo message="log file to check for failures: ${env.LOG_DIR}/${projectname}/antBuilderOutput.log"/>
<condition
property="reasonFailed"
value="CVS error fetching source found earlier in log. Failing fast.">
<resourcecontains
resource="${env.LOG_DIR}/${projectname}/antBuilderOutput.log"
substring="cvs [export aborted]:"/>
</condition>
<condition
property="reasonFailed"
value="BUILD FAILED found earlier in log. Failing fast.">
<resourcecontains
resource="${env.LOG_DIR}/${projectname}/antBuilderOutput.log"
substring="BUILD FAILED"/>
</condition>
</target>
</project>