Better output capture
This commit is contained in:
parent
9c99594c9f
commit
4733ed1d61
@ -24,6 +24,7 @@
|
|||||||
<attribute name="msg" default=""/>
|
<attribute name="msg" default=""/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<echo>Running: ${chapter} @{cls}</echo>
|
<echo>Running: ${chapter} @{cls}</echo>
|
||||||
|
<echo file="${antoutput}" append="true">Running: ${chapter} @{cls}</echo>
|
||||||
<java
|
<java
|
||||||
classname="@{cls}"
|
classname="@{cls}"
|
||||||
classpath="${java.class.path};${basedir};${basedir}/.."
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
||||||
@ -34,9 +35,9 @@
|
|||||||
output="${antoutput}" append="true">
|
output="${antoutput}" append="true">
|
||||||
<arg line="@{arguments}"/>
|
<arg line="@{arguments}"/>
|
||||||
</java>
|
</java>
|
||||||
<echo>Finished: ${chapter} @{cls}</echo>
|
<echo file="${antoutput}" append="true">Finished: ${chapter} @{cls}</echo>
|
||||||
<echo>@{msg}</echo>
|
<echo file="${antoutput}" append="true">@{msg}</echo>
|
||||||
<echo>--------------------------------</echo>
|
<echo file="${antoutput}" append="true">--------------------------------</echo>
|
||||||
</sequential>
|
</sequential>
|
||||||
</macrodef>
|
</macrodef>
|
||||||
|
|
||||||
@ -58,7 +59,7 @@
|
|||||||
description="Build all classes in this directory"
|
description="Build all classes in this directory"
|
||||||
name="build">
|
name="build">
|
||||||
<fail message="Java 8 required" unless="version1.8"/>
|
<fail message="Java 8 required" unless="version1.8"/>
|
||||||
<echo message="Building '${chapter}'"/>
|
<echo file="${antoutput}" append="true" message="Building '${chapter}'"/>
|
||||||
<javac includeantruntime="false"
|
<javac includeantruntime="false"
|
||||||
classpath="${java.class.path};${basedir};${basedir}/.."
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
||||||
debug="true"
|
debug="true"
|
||||||
@ -67,7 +68,7 @@
|
|||||||
<compilerarg value="-Xmaxerrs"/>
|
<compilerarg value="-Xmaxerrs"/>
|
||||||
<compilerarg value="10"/>
|
<compilerarg value="10"/>
|
||||||
</javac>
|
</javac>
|
||||||
<echo message="Build '${chapter}' succeeded"/>
|
<echo file="${antoutput}" append="true" message="Build '${chapter}' succeeded"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target description="delete all byproducts" name="clean">
|
<target description="delete all byproducts" name="clean">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user