| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="../." name="build_WPS_Functions_basedir"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- >
- <description>This script should be included to all builds to be called for managing tempdir and basedir and/or its repository </description>
-
- <!--
- example project structure
-
- <project basedir="../../." name="p5_TPP:template_p5_project" default="p5_TPP:default_template_p5_project"
- xmlns:p5_TPP="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/template_p5_project/template_p5_project.xsd">
-
- <description>This is template example project to show how to handle properties</description>
-
- <include file="${basedir}/WPS_Functions/build_WPS_Function_basedir.xml" as="p5bws"/>
-
-
-
- <target name="p5_TPP:default_template_p5_project" depends="p5bws.p5bws:create_tempdir" description="Project example default action with reading properties">
- <echo> We have important properties like ${public_html} </echo>
- </target>
-
-
-
- </project>
-
- -->
- <!--<include file="build.WPS_Functions.PRODUCT.xml" optional="true"/>-->
-
- <!-- globbal properties -->
- <property name="public_html" value="${basedir}"/>
- <property name="build_properties" value="${p5build.properties}" />
- <property name="build_properties.xml" value="${p5build.properties.xml}" />
-
- <property name="WPS_Functions" value="${WPS_Functions.basedir}"/>
- <property name="WPS_Functions.temp" value="${WPS_Functions.temp}"/>
- <property name="build_WPS_Functions.xml" value="${WPS_Functions.build}"/> <!-- call it to get properties -->
- <property name="build_WPS_Functions.xml.properties" value="${WPS_Functions.properties}"/>
-
-
-
-
- <target name="p5bws:dirs" depends="p5bws:dirs.cond,p5bws:dirs.temp.create,p5bws:dirs.repository.create,p5bws:dirs.repository.dita.create">
- <echo> {local.temp} = ${local.temp}
- {local.repository} = ${local.repository}
- </echo>
- </target>
-
- <target name="p5bws:dirs.test">
- <echo> testing if set ${local.temp}?</echo>
- <condition taskname="p5bws:dirs.cond" property="local.temp.true">
- <isset property="local.temp" />
- </condition>
- <condition taskname="p5bws:dirs.cond" property="local.repository.true">
- <isset property="local.repository"/>
- </condition>
- <condition taskname="p5bws:dirs.cond" property="local.repository.dita.true">
- <isset property="local.repository.dita"/>
- </condition>
- </target>
-
- <target name="p5bws:dirs.cond" depends="p5bws:dirs.test">
- <echo> cond result for ${local.temp} = ${local.temp.true}</echo>
- </target>
-
-
- <target name="p5bws:dirs.temp.create" if="${local.temp.true}" >
- <mkdir dir="${local.temp}"/>
- </target>
- <target name="p5bws:dirs.repository.create" if="${local.repository.true}" >
- <mkdir dir="${local.repository}"/>
- </target>
- <target name="p5bws:dirs.repository.dita.create" if="${local.repository.dita.true}" >
- <mkdir dir="${local.repository.dita}"/>
- </target>
-
-
- <target name="p5bws:dirs.clean" depends="p5bws:dirs.cond,p5bws:dirs.temp.clean,p5bws:dirs.repository.clean,p5bws:dirs.repository.dita.clean" description="Clean all output and temp files"/>
-
-
- <target name="p5bws:dirs.temp.clean" depends="p5bws:dirs.cond" if="${local.temp.true}" >
- <delete includeEmptyDirs="true">
- <fileset dir="${local.temp}" includes="*"/>
- </delete>
- </target>
- <target name="p5bws:dirs.repository.clean" if="${local.repository.true}" >
- <delete dir="${local.repository}" failonerror="false"/>
- </target>
- <target name="p5bws:dirs.repository.dita.clean" if="${local.repository.dita.true}" >
- <delete dir="${local.repository.dita}" failonerror="false"/>
- </target>
-
-
- </project>
|