34 <!-- Location of generated logging config. |
34 <!-- Location of generated logging config. |
35 @type string |
35 @type string |
36 @scope private |
36 @scope private |
37 --> |
37 --> |
38 <property name="logging.output.file" location="${cache.dir}/logging.${env.PID}.conf" /> |
38 <property name="logging.output.file" location="${cache.dir}/logging.${env.PID}.conf" /> |
39 <fmpp sourceFile="${helium.dir}/config/logging.conf.ftl" outputFile="${logging.output.file}" quiet="true"> |
39 <fmpp sourceFile="${helium.dir}/tools/logging/templates/logging.conf.ftl" outputFile="${logging.output.file}" quiet="true"> |
40 <data expandProperties="yes"> |
40 <data expandProperties="yes"> |
41 ant: antProperties() |
41 ant: antProperties() |
42 </data> |
42 </data> |
43 </fmpp> |
43 </fmpp> |
44 |
44 |
69 </not> |
69 </not> |
70 <os family="windows"/> |
70 <os family="windows"/> |
71 </and> |
71 </and> |
72 <then> |
72 <then> |
73 <!-- used to track if build.drive has predefined or not |
73 <!-- used to track if build.drive has predefined or not |
74 @type flag |
74 @type boolean |
75 @scope private |
75 @scope private |
76 --> |
76 --> |
77 <property name="build.drive.notdefined" value="true"/> |
77 <property name="build.drive.notdefined" value="true"/> |
78 <exec osfamily="windows" executable="python" failonerror="true" outputproperty="build.drive"> |
78 <hlm:resourceaccess lockName="subst-drive"> |
79 <arg line="-m searchnextdrive"/> |
79 <exec osfamily="windows" executable="python" failonerror="true" outputproperty="build.drive"> |
80 </exec> |
80 <arg line="-m searchnextdrive"/> |
81 <if> |
81 </exec> |
82 <equals arg1="${build.drive}" arg2="Error: No free drive!"/> |
82 <if> |
83 <then> |
83 <equals arg1="${build.drive}" arg2="Error: No free drive!"/> |
84 <fail message="ERROR: Failed to assign build drive, please check you are not running out of drives." /> |
84 <then> |
85 </then> |
85 <fail message="ERROR: Failed to assign build drive, please check you are not running out of drives." /> |
86 </if> |
86 </then> |
87 <mkdir dir="${env.TEMP}/helium/temp_drive"/> |
87 </if> |
88 <exec osfamily="windows" executable="subst" failonerror="false"> |
88 <mkdir dir="${env.TEMP}/helium/temp_drive"/> |
89 <arg value="${build.drive}" /> |
89 <exec osfamily="windows" executable="subst" failonerror="false"> |
90 <arg value="${env.TEMP}/helium/temp_drive" /> |
90 <arg value="${build.drive}" /> |
91 </exec> |
91 <arg value="${env.TEMP}/helium/temp_drive" /> |
|
92 </exec> |
|
93 </hlm:resourceaccess> |
92 <script language="jython" setbeans="false"> |
94 <script language="jython" setbeans="false"> |
93 <![CDATA[ |
95 <![CDATA[ |
94 import os |
96 import os |
95 import java.lang.Runtime |
97 import java.lang.Runtime |
96 import java.lang.Thread |
98 import java.lang.Thread |
354 @type boolean |
356 @type boolean |
355 @scope public |
357 @scope public |
356 --> |
358 --> |
357 <property name="failonerror" value="false"/> |
359 <property name="failonerror" value="false"/> |
358 <!-- Maximum allowable errors in a build. |
360 <!-- Maximum allowable errors in a build. |
359 @type number |
361 @type integer |
360 --> |
362 --> |
361 <property name="build.errors.limit" value="0"/> |
363 <property name="build.errors.limit" value="0"/> |
362 <!-- Unsubsted drive after build finished. If not defined then helium should left the drive as subst. Set the value as "yes" if you want to unsubst after build finished. |
364 <!-- Unsubsted drive after build finished. If not defined then helium should left the drive as subst. Set the value as "yes" if you want to unsubst after build finished. |
363 @type string |
365 @type string |
364 --> |
366 --> |