Skip to content
Snippets Groups Projects
Commit 91479c16 authored by david_williams's avatar david_williams
Browse files

cleanup and simplify

parent 50241756
No related branches found
No related tags found
No related merge requests found
...@@ -9,4 +9,6 @@ getprereq.dtp=false ...@@ -9,4 +9,6 @@ getprereq.dtp=false
#getprereq.wst=false #getprereq.wst=false
#getprereq.jst=false #getprereq.jst=false
getprereq.wtp=false getprereq.wtp=false
#getprereq.dltk=false #getprereq.dltk=false
\ No newline at end of file
getprereq.testlibraries=true
\ No newline at end of file
...@@ -136,11 +136,7 @@ ...@@ -136,11 +136,7 @@
</target> </target>
<target <target
name="unzipTests"> name="unzipTests">
<!--
unzip the builds and junit tests we use 'unzip' here, so we
can continue on error, if desired. (such as if zip was not
created, due to other failures or options).
-->
<java <java
taskname="p2Director Install" taskname="p2Director Install"
fork="true" fork="true"
......
...@@ -96,6 +96,9 @@ ...@@ -96,6 +96,9 @@
</fileset> </fileset>
</subant> </subant>
<!-- copy early, if we can --> <!-- copy early, if we can -->
<antcall
target="genHtml"/>
<ant <ant
antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/> antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
<subant <subant
...@@ -122,6 +125,16 @@ ...@@ -122,6 +125,16 @@
message="Ended Unit Tests"/> message="Ended Unit Tests"/>
<antcall <antcall
target="genHtml"/> target="genHtml"/>
<available
file="${results}/xml"
type="dir"
property="resultsWereGenerated"/>
<fail
unless="resultsWereGenerated"
message="Unit tests results were not generated when expected. Probable build error."/>
</target> </target>
<!-- <!--
by making 'all' the default, and "runOneTestBundle" as its by making 'all' the default, and "runOneTestBundle" as its
...@@ -166,10 +179,24 @@ ...@@ -166,10 +179,24 @@
<target <target
name="genHtml" name="genHtml"
description="Generates HTML results with provided JUNIT.XSL provided" description="Generates HTML results with provided JUNIT.XSL provided"
unless="genHtml.disable"> depends="checkGenHTMLConditions"
if="resultsWereGenerated">
<xslt <xslt
style="JUNIT.XSL" style="JUNIT.XSL"
basedir="${results}/xml" basedir="${results}/xml"
destdir="${results}/html"/> destdir="${results}/html"/>
</target> </target>
<!--
It is a likely a build error if no results have been produced ... but error
message from xslt failure is not very clear.
-->
<target
name="checkGenHTMLConditions">
<echo message="results xml: ${results}/xml" />
<available
file="${results}/xml"
type="dir"
property="resultsWereGenerated"/>
</target>
</project> </project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment