Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.6
-
None
Description
if you log to a different dir, that dir isn't created and you have to modify to properties (build.logfile and build.logfile-stored). The following works better (in forrestbot.xml of course):
<property name="build.log-dir" location="logs"/>
<mkdir dir="${build.log-dir}"/>
<property name="build.logfile" location="${build.log-dir}/${ant.project.name}.log"/>
<property name="build.logfile-stored" location="${build.log-dir}/${ant.project.name}-${logtime}.log"/>
Now you only have to override 'build.log-dir' and both file properties use that directory, and the new log dir is created instead of the default, "logs".
<property name="build.log-dir" location="logs"/>
<mkdir dir="${build.log-dir}"/>
<property name="build.logfile" location="${build.log-dir}/${ant.project.name}.log"/>
<property name="build.logfile-stored" location="${build.log-dir}/${ant.project.name}-${logtime}.log"/>
Now you only have to override 'build.log-dir' and both file properties use that directory, and the new log dir is created instead of the default, "logs".