Skip to content

Commit da9b88f

Browse files
committed
Closer
1 parent d09c8bf commit da9b88f

1 file changed

Lines changed: 3 additions & 21 deletions

File tree

Ant-Common.xml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,41 +19,23 @@
1919
<attribute name="dirpath" default=""/>
2020
<attribute name="arguments" default=""/>
2121
<attribute name="failOnError" default="true"/>
22+
<attribute name="timeOut" default="15000"/>
2223
<sequential>
2324
<echo>Running: ${chapter} @{cls}</echo>
2425
<java
2526
classname="@{cls}"
2627
classpath="${java.class.path};${basedir};${basedir}/.."
2728
dir="@{dirpath}"
2829
failonerror="@{failOnError}"
29-
fork="true">
30+
fork="true"
31+
timeout="@{timeOut}">
3032
<arg line="@{arguments}"/>
3133
</java>
3234
<echo>Finished: ${chapter} @{cls}</echo>
3335
<echo>--------------------------------</echo>
3436
</sequential>
3537
</macrodef>
3638

37-
<macrodef name="jrunp">
38-
<attribute name="cls" default="NOT SET"/>
39-
<attribute name="dirpath" default="NOT SET"/>
40-
<attribute name="arguments" default=""/>
41-
<attribute name="failOnError" default="true"/>
42-
<sequential>
43-
<echo>Running: ${chapter} @{cls}</echo>
44-
<java
45-
classname="@{cls}"
46-
classpath="${java.class.path};${basedir};${basedir}/.."
47-
dir="@{dirpath}"
48-
failonerror="@{failOnError}"
49-
fork="true">
50-
<arg value="@{arguments}"/>
51-
</java>
52-
<echo>Finished: ${chapter} @{cls}</echo>
53-
<echo>--------------------------------</echo>
54-
</sequential>
55-
</macrodef>
56-
5739
<condition property="version1.8">
5840
<equals arg1="1.8" arg2="${ant.java.version}"/>
5941
</condition>

0 commit comments

Comments
 (0)