adding failed JUnit check
diff --git a/releng.control/cc_project_build.xml b/releng.control/cc_project_build.xml
index 50ab08b..f6b1aaa 100644
--- a/releng.control/cc_project_build.xml
+++ b/releng.control/cc_project_build.xml
@@ -39,7 +39,8 @@
to one of the cc_config project name, such as wtp-R3.0-I.
-->
<fail
- unless="projectname" message="projectname must be set by caller"/>
+ unless="projectname"
+ message="projectname must be set by caller" />
<!-- if not otherwise set, the following are good default values -->
<property
@@ -51,8 +52,24 @@
target="doBuildPhase" />
<antcall
target="doTestPhase" />
+ <antcall
+ target="checkIfFailedTests" />
</target>
<target
+ name="checkIfFailedTests"
+ depends="checkFailedFile"
+ if="failedMessage">
+ <fail
+ message="failedMessage" />
+ </target>
+ <target name="checkFailedFile">
+
+ <loadresource property="failedMessage" quiet="true" failonerror="false">
+ <file file="${buildDirectory}/junitFailureList.log" />
+ </loadresource>
+
+ </target>
+ <target
name="doBuildPhase">
<antcall
target="doCleanBuild" />