Storing output to Ant-output.txt
This commit is contained in:
parent
0ebcb56618
commit
9c99594c9f
@ -1,6 +1,7 @@
|
|||||||
<project>
|
<project>
|
||||||
|
|
||||||
<property name="chapter" value="CHAPTER?"/>
|
<property name="chapter" value="CHAPTER?"/>
|
||||||
|
<property name="antoutput" value="../Ant-output.txt"/>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
Ant build.xml for the source code for chapter ${chapter}
|
Ant build.xml for the source code for chapter ${chapter}
|
||||||
@ -29,7 +30,8 @@
|
|||||||
dir="@{dirpath}"
|
dir="@{dirpath}"
|
||||||
failonerror="@{failOnError}"
|
failonerror="@{failOnError}"
|
||||||
fork="true"
|
fork="true"
|
||||||
timeout="@{timeOut}">
|
timeout="@{timeOut}"
|
||||||
|
output="${antoutput}" append="true">
|
||||||
<arg line="@{arguments}"/>
|
<arg line="@{arguments}"/>
|
||||||
</java>
|
</java>
|
||||||
<echo>Finished: ${chapter} @{cls}</echo>
|
<echo>Finished: ${chapter} @{cls}</echo>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#! py -3
|
#! py -3
|
||||||
"""
|
"""
|
||||||
TODO: Make sure there's a newline at the end of the extracted files
|
TODO: Make sure there's a newline at the end of the extracted files
|
||||||
TODO: RunByHand can be removed? Not used in book
|
|
||||||
Extract code examples from TIJ4 Refreshed. Extracts from plain text file.
|
Extract code examples from TIJ4 Refreshed. Extracts from plain text file.
|
||||||
Creates Ant build.xml file for each subdirectory.
|
Creates Ant build.xml file for each subdirectory.
|
||||||
"""
|
"""
|
||||||
@ -69,6 +68,7 @@ def extractExamples():
|
|||||||
target.parent.mkdir(parents=True)
|
target.parent.mkdir(parents=True)
|
||||||
with target.open("w", newline='') as codeListing:
|
with target.open("w", newline='') as codeListing:
|
||||||
codeListing.writelines(listing)
|
codeListing.writelines(listing)
|
||||||
|
codeListing.write("\n")
|
||||||
|
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user