Skip to content

Commit 1d07a08

Browse files
committed
Ready to merge everything into jrun
1 parent 5a83702 commit 1d07a08

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Ant-Common.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616

1717
<macrodef name="jrun">
1818
<attribute name="cls" default="NOT SET"/>
19+
<attribute name="dirpath" default=""/>
1920
<attribute name="arguments" default=""/>
21+
<attribute name="failOnError" default="true"/>
2022
<sequential>
2123
<echo>Running: ${chapter} @{cls}</echo>
2224
<java
2325
classname="@{cls}"
2426
classpath="${java.class.path};${basedir};${basedir}/.."
25-
failonerror="true"
27+
dir="@{dirpath}"
28+
failonerror="@{failOnError}"
2629
fork="true">
27-
<arg value="@{arguments}"/>
30+
<arg value="@{arguments}"/>
2831
</java>
2932
<echo>Finished: ${chapter} @{cls}</echo>
3033
<echo>--------------------------------</echo>
@@ -35,13 +38,14 @@
3538
<attribute name="cls" default="NOT SET"/>
3639
<attribute name="dirpath" default="NOT SET"/>
3740
<attribute name="arguments" default=""/>
41+
<attribute name="failOnError" default="true"/>
3842
<sequential>
3943
<echo>Running: ${chapter} @{cls}</echo>
4044
<java
4145
classname="@{cls}"
4246
classpath="${java.class.path};${basedir};${basedir}/.."
4347
dir="@{dirpath}"
44-
failonerror="true"
48+
failonerror="@{failOnError}"
4549
fork="true">
4650
<arg value="@{arguments}"/>
4751
</java>

0 commit comments

Comments
 (0)