diff --git a/Ant-Common.xml b/Ant-Common.xml index 32e91ae9..b473e536 100644 --- a/Ant-Common.xml +++ b/Ant-Common.xml @@ -1,6 +1,7 @@ + Ant build.xml for the source code for chapter ${chapter} @@ -29,7 +30,8 @@ dir="@{dirpath}" failonerror="@{failOnError}" fork="true" - timeout="@{timeOut}"> + timeout="@{timeOut}" + output="${antoutput}" append="true"> Finished: ${chapter} @{cls} diff --git a/tools/Examples.py b/tools/Examples.py index 9ea13997..7a4edfd3 100644 --- a/tools/Examples.py +++ b/tools/Examples.py @@ -1,7 +1,6 @@ #! py -3 """ 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. Creates Ant build.xml file for each subdirectory. """ @@ -69,6 +68,7 @@ def extractExamples(): target.parent.mkdir(parents=True) with target.open("w", newline='') as codeListing: codeListing.writelines(listing) + codeListing.write("\n") def clean():