mirror of https://github.com/dspinellis/UMLGraph
Fail on test failures.
This commit is contained in:
parent
e5bc6f1f8f
commit
477d5cc58a
|
|
@ -119,14 +119,14 @@ class Version { public static String VERSION = "${VERSION}";}
|
|||
|
||||
<target name="test" depends="compile,testcompile"
|
||||
description="run the regression tests" >
|
||||
<java classname="org.umlgraph.test.BasicTest" fork="true">
|
||||
<java classname="org.umlgraph.test.BasicTest" fork="true" failonerror="true">
|
||||
<classpath>
|
||||
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
|
||||
<pathelement location="${build}"/>
|
||||
<pathelement location="${lib}/UmlGraph.jar"/>
|
||||
</classpath>
|
||||
</java>
|
||||
<java classname="org.umlgraph.test.UmlDocTest" fork="true">
|
||||
<java classname="org.umlgraph.test.UmlDocTest" fork="true" failonerror="true">
|
||||
<classpath>
|
||||
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
|
||||
<pathelement location="${build}"/>
|
||||
|
|
|
|||
|
|
@ -148,10 +148,11 @@ public class UmlDocTest {
|
|||
private static void runDoclet(String[] options) {
|
||||
pw.print("Run javadoc -doclet " + doclet);
|
||||
for (String o : options)
|
||||
pw.print(o + " ");
|
||||
pw.print(" " + o);
|
||||
pw.println();
|
||||
com.sun.tools.javadoc.Main.execute("UMLDoc test", pw, pw, pw,
|
||||
doclet, options);
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue