lib/build/customize.build in uppercutbuild-1.3.0.0 vs lib/build/customize.build in uppercutbuild-1.4.0.0
- old
+ new
@@ -15,34 +15,37 @@
<property name="customize.step.type.lowered" value="${string::to-lower(customize.step.type)}" />
<property name="file.customize.template" value="item.template" />
<property name="file.customized" value="" readonly="false" />
<property name="path.to.custom_file" value="-1" />
<property name="path.to.custom_file" value="" if="${file::exists(customize.step.name)}" />
+ <property name="app.ruby" value="C:\Ruby\bin\ruby.exe" overwrite="false" />
+ <property name="app.powershell" value="%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe" overwrite="false" />
<target name="go" depends="run_tasks, report_finish_time" />
<target name="run_tasks">
- <echo message="Running ${project::get-name()} to create custom tasks." />
+ <echo level="Warning" message="" />
+ <echo level="Warning" message="Running ${project::get-name()} to create custom tasks." />
<call target="prepare" if="${target::exists('prepare')}" />
<call target="run_normal_tasks" />
</target>
<target name="run_normal_tasks"
depends="error_check, customize"
description="Setting up a customize file for UppercuT." />
<target name="error_check">
- <echo message="Error checking - the input for customize.step.name is '${customize.step.name}' and the input for customize.step.type is '${customize.step.type}'." />
+ <echo level="Warning" message="Error checking - the input for customize.step.name is '${customize.step.name}' and the input for customize.step.type is '${customize.step.type}'." />
<fail message="Please send in the arguments for what step to customize and what type of customization. Call customize.bat /? for usage instructions."
if="${customize.step.name=='__REPLACE__' or customize.step.type =='__REPLACE__'}" />
<fail message="The type of customization can only be pre, post, or replace."
unless="${customize.step.type.lowered =='pre' or customize.step.type.lowered =='post' or customize.step.type.lowered =='replace'}" />
</target>
<target name="customize">
<property name="file.customized" value="${path::get-file-name-without-extension(customize.step.name)}.${customize.step.type.lowered}${path::get-extension(customize.step.name)}" />
- <echo message="Creating a customized step called ${file.customized}." />
+ <echo level="Warning" message="Creating a customized step called ${file.customized}." />
<call target="resolve_path_to_custom_file" />
<fail message="${file.customized} already exists in ${dirs.build_scripts_custom}. Will not run." if="${file::exists(dirs.build_scripts_custom + path.separator + file.customized)}" />
<call target="create_file_if_not_already_existing" />
<call target="replace_template_values" />
</target>
@@ -50,11 +53,11 @@
<target name="resolve_path_to_custom_file">
<property name="path.to.custom_file" value="${path.separator}analyzers" if="${file::exists('analyzers' + path.separator + customize.step.name)}" />
<property name="path.to.custom_file" value="${path.separator}versioners" if="${file::exists('versioners' + path.separator + customize.step.name)}" />
<fail message="${customize.step.name} does not exist in anywhere in the build directory." if="${path.to.custom_file=='-1'}" />
<property name="dirs.build_scripts_custom" value="${dirs.build_scripts_custom}${path.to.custom_file}" />
- <echo message="Found ${customize.step.name} in '${dirs.current}${path.separator}${path.to.custom_file}'. This means the custom path is going to be ${dirs.build_scripts_custom}." />
+ <echo level="Warning" message="Found ${customize.step.name} in '${dirs.current}${path.separator}${path.to.custom_file}'. This means the custom path is going to be ${dirs.build_scripts_custom}." />
</target>
<target name="create_file_if_not_already_existing">
<copy file="customizers${path.separator}${file.customize.template}" tofile="${dirs.build_scripts_custom}${path.separator}${file.customized}" if="${not file::exists(dirs.build_scripts_custom + path.separator + file.customized)}" />
</target>
@@ -69,9 +72,9 @@
xpath="/project/property[@name = 'path.to.toplevel']/@value"
value="..${path.separator}.." if="${path.to.custom_file !=''}" />
</target>
<target name="report_finish_time">
- <echo message="Customize finished at ${datetime::now()}. Please make any customizations you need to now to ${dirs.build_scripts_custom}${path.separator}${file.customized} and don't forget to add it to source control." />
+ <echo level="Warning" message="Customize finished at ${datetime::now()}. Please make any customizations you need to now to ${dirs.build_scripts_custom}${path.separator}${file.customized} and don't forget to add it to source control." />
</target>
</project>
\ No newline at end of file