|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<project basedir="../../." name="ant" default="p5ant.default"
|
|
|
+<project basedir="../../." name="p5ant" default="p5ant.default"
|
|
|
xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
|
|
|
xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
|
|
|
xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
|
|
|
@@ -17,29 +17,48 @@
|
|
|
<include file="build.p5ant.PRODUCT.xml" as="PRODUCT" />
|
|
|
<include file="build.p5ant.INSTALL.xml" as="INSTALL"/>
|
|
|
|
|
|
- <import file="build.p5ant.create_new_WPS_Function.from_git.xml" optional="true" /> <!-- as="from_git" -->
|
|
|
+ <!--<include file="build.p5ant.create_new_WPS_Function.from_git.xml" optional="true" as="from_git" />--> <!-- import as="from_git" -->
|
|
|
+ <include file="build.p5ant.create_new_WPS_Function.xml" as="create_new_WPS_Function" />
|
|
|
<include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
|
|
|
-
|
|
|
+ <include file="build.p5ant.safety.xml" as="safety"/>
|
|
|
+ <include file="build.p5ant.storage.xml" as="storage"/>
|
|
|
<include file="../system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis"/>
|
|
|
<!--<include file="${WPS_Functions.basedir}/build_WPS_Function_basedir.xml" as="p5bws" />-->
|
|
|
|
|
|
<include file="../../Types/build.p5Type.PRODUCT.xml"/>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ <include file="../documentation_generator/build_documentation_generator.xml" as="p5dg"/>
|
|
|
+ <extension-point name="p5dg.documentation.files.antstructure-resp.xsd" depends="p5dg.p5dg.documentation.files.antstructure-resp.xsd"/>
|
|
|
+ <extension-point name="graph.graph.graph-to-nodes.xml" depends="p5dg.graph.graph.graph-to-nodes.xml"/>
|
|
|
+
|
|
|
<property name="p5ant.documentation.files.antstructure.dtd" location="${p5ant.repository}/p5dg.documentation.files.antstructure.dtd"/>
|
|
|
<!-- <property name="p5ant.documentation.files.antstructure-to-fix.xsd" location="${p5ant.repository}/p5dg.documentation.files.antstructure-to-fix.x_s_d"/>
|
|
|
<property name="p5ant.documentation.files.antstructure.xsd" location="${p5ant.repository}/p5dg.documentation.files.antstructure.xsd"/>
|
|
|
<property name="p5ant.documentation.files.antstructure-request.xsd" location="${p5ant.repository}/p5dg.documentation.files.antstructure-request.xsd"/>
|
|
|
<property name="p5ant.documentation.files.antstructure-resp.xsd" location="${p5ant.repository}/p5dg.documentation.files.antstructure-resp.xsd"/>-->
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- <!--<propertyset id="p5dg.properties">
|
|
|
+ <target name="create_new_WPS_Function.from_git.create_new_WPS_Function.create" depends="create_new_WPS_Function.create"/>
|
|
|
+ <target name="create_new_WPS_Function.from_url.create_new_WPS_Function.create" depends="create_new_WPS_Function.create"/>
|
|
|
+ <target name="create_new_WPS_Function.module.create_new_WPS_Function.create" depends="create_new_WPS_Function.create"/>
|
|
|
+
|
|
|
+ <target name="create_new_WPS_Function.from_git.create_new_WPS_Function.create_all" depends="create_new_WPS_Function.create_all"/>
|
|
|
+ <target name="create_new_WPS_Function.from_url.create_new_WPS_Function.create_all" depends="create_new_WPS_Function.create_all"/>
|
|
|
+ <target name="create_new_WPS_Function.module.create_new_WPS_Function.create_all" depends="create_new_WPS_Function.create_all"/>
|
|
|
+
|
|
|
+ <extension-point name="create_new_WPS_Function.module.safety.say_and_open_file" depends="safety.say_and_open_file"/>
|
|
|
+
|
|
|
+ <extension-point name="p5ant.safety.open_file__x3A__p5apl.open" extensionOf="safety.open_file__x3A__p5apl.open" onMissingExtensionPoint="warn"/>
|
|
|
+ <extension-point name="p5ant.safety.open_file__x3A__p5apl.terminal-notifier" extensionOf="safety.open_file__x3A__p5apl.terminal-notifier" onMissingExtensionPoint="warn"/>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<propertyset id="p5dg.properties">
|
|
|
<propertyref prefix="p5dg"/>
|
|
|
<mapper type="glob" from="p5dg.*" to="local.*"/>
|
|
|
</propertyset>-->
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<target name="p5ant.default">
|
|
|
<echo> Use mainly </echo>
|
|
|
<echo> create_new_WPS_Function </echo>
|
|
|
@@ -52,6 +71,13 @@
|
|
|
</target>
|
|
|
|
|
|
|
|
|
+ <target name="p5ant.self_repair" description="self controll - to validate self and repair - like perms etc" >
|
|
|
+ <echo>#75 will check perms for user $p5build_SE.SYSTEM.local-user = ${p5build_SE.SYSTEM.local-user} </echo>
|
|
|
+ <!--<antcall target="p5build.self_repair"></antcall>-->
|
|
|
+ <ant antfile="${p5build.build}" target="self_repair"></ant>
|
|
|
+ <antcall target="p5suis.p5suis.self_repair"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
<!--<target name="documentation.ant.dtd2xsd.pl" depends="p5ant.documentation.ant">
|
|
|
<property environment="env"/>
|
|
|
<exec executable="${bin.perl}" searchpath="true" output="${p5ant.documentation.files.antstructure-to-fix.xsd}" errorproperty="p5dg:documentation.ant.dtd2xsd.pl.error">
|
|
|
@@ -76,327 +102,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <target name="create_new_WPS_Function" description="To create new WPS function module" depends="PRODUCT.basedir,PRODUCT.clean.temp,create_new_WPS_Function.cond"/>
|
|
|
+ <extension-point name="create_new_WPS_Function" depends="create_new_WPS_Function.create"/>
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.input" >
|
|
|
- <input addproperty="p5ant.WPS_Functions.PRODUCT.name.input" message="p5ant.WPS_Functions.PRODUCT.name.input - PRODUCT.name - like stuff_installer" defaultvalue="workflow_controller" />
|
|
|
- <input addproperty="p5ant.WPS_Functions.PRODUCT.prefix.input" message="p5ant.WPS_Functions.PRODUCT.prefix.input - PRODUCT.prefix - like p5si " defaultvalue="p5wc" />
|
|
|
- <echo>#87 $p5ant.WPS_Functions.PRODUCT.git.url.input = ${p5ant.WPS_Functions.PRODUCT.git.url.input}</echo>
|
|
|
- <!--<input addproperty="p5ant.WPS_Functions.INSTALL.file-path" message="INSTALL.file-path - type current local file directory which files should be included to this module like ~/my_new_module_include_dir/" />-->
|
|
|
-
|
|
|
- <property name="p5ant.WPS_Functions.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <property name="p5ant.WPS_Functions.PRODUCT.vendor-domain" value="${WPS_Functions.PRODUCT.vendor-domain}.${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
- <property name="p5ant.WPS_Functions.basedir" location="${WPS_Functions.basedir}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <property name="p5ant.WPS_Functions.build" location="${p5ant.WPS_Functions.basedir}/build_${p5ant.WPS_Functions.PRODUCT.name.input}.xml"/>
|
|
|
- <property name="p5ant.WPS_Functions.xsl" location="${p5ant.WPS_Functions.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl"/>
|
|
|
- <property name="p5ant.WPS_Functions.xsd" location="${p5ant.WPS_Functions.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd"/>
|
|
|
- <property name="p5ant.WPS_Functions.temp" location="${p5ant.WPS_Functions.basedir}/temp"/>
|
|
|
- <property name="p5ant.WPS_Functions.repository" location="${p5ant.WPS_Functions.basedir}/repository"/>
|
|
|
- <property name="p5ant.WPS_Functions.install" location="${p5ant.WPS_Functions.basedir}/install"/>
|
|
|
- <property name="p5ant.WPS_Functions.childproperties" value="${WPS_Functions.childproperties}/.build_${p5ant.WPS_Functions.PRODUCT.name.input}.childproperties"/>
|
|
|
- <!--<property name="WPS_Functions.properties.xml" value="" />-->
|
|
|
-
|
|
|
- <property name="p5ant.WPS_Functions.include.structure.xml" location="${p5ant.WPS_Functions.repository}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.structure.xml"/>
|
|
|
- <property name="p5ant.WPS_Functions.include.xsl.p5xsls.xml" location="${p5ant.WPS_Functions.temp}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.xsl.p5xsls.xml"/>
|
|
|
-
|
|
|
- <property name="p5ant.WPS_Functions.install_example" location="${p5ant.WPS_Functions.repository}/install_example.file"/>
|
|
|
- <property name="p5ant.WPS_Functions.INSTALL.install_example" location="${p5ant.WPS_Functions.install}/install_example.file"/>
|
|
|
-
|
|
|
- <property name="p5ant.WPS_Functions.PRODUCT.xml" location="${p5ant.WPS_Functions.basedir}/build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml"/>
|
|
|
- <property name="p5ant.WPS_Functions.SYSTEM.xml" location="${p5ant.WPS_Functions.basedir}/build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.xml"/>
|
|
|
- <property name="p5ant.WPS_Functions.INSTALL.xml" location="${p5ant.WPS_Functions.basedir}/build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.xml"/>
|
|
|
-
|
|
|
- <!--<condition property="p5ant.WPS_Functions.git" value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.git">
|
|
|
- <isset property="p5ant.WPS_Functions.PRODUCT.git.url.input"/>
|
|
|
- </condition>-->
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- </target>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- <target name="create_new_WPS_Function.test">
|
|
|
- <condition property="p5ant.create_new_WPS_Function.exists" taskname="create_new_WPS_Function.cond">
|
|
|
- <available file="${p5ant.WPS_Functions.basedir}"/>
|
|
|
- </condition>
|
|
|
- </target>
|
|
|
-
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.cond" depends="create_new_WPS_Function.input,create_new_WPS_Function.test,create_new_WPS_Function.fail,create_new_WPS_Function.ok "/>
|
|
|
|
|
|
- <target name="create_new_WPS_Function.fail" if="p5ant.create_new_WPS_Function.exists">
|
|
|
- <fail> #92 already exists function with p5ant.WPS_Functions.basedir ${p5ant.WPS_Functions.basedir}</fail>
|
|
|
- </target>
|
|
|
|
|
|
- <target name="create_new_WPS_Function.ok" unless="p5ant.create_new_WPS_Function.exists" depends="create_new_WPS_Function.info,create_new_WPS_Function.basedir">
|
|
|
- <antcall target="create_new_WPS_Function.project"/>
|
|
|
- <antcall target="create_new_WPS_Function.PRODUCT"/>
|
|
|
- <antcall target="create_new_WPS_Function.INSTALL"/>
|
|
|
- <antcall target="create_new_WPS_Function.SYSTEM"/>
|
|
|
- <antcall target="create_new_WPS_Function.xsd"/>
|
|
|
- <antcall target="create_new_WPS_Function.xsl"/>
|
|
|
- <antcall target="p5suis.p5suis.say_to_queue.copy_file">
|
|
|
- <param name="p5suis.say_to_queue.copy_file" value="${p5ant.WPS_Functions.PRODUCT.xml}"/>
|
|
|
- </antcall>
|
|
|
-
|
|
|
- <!--<antcall target="p5suis.p5suis:say_to_queue">
|
|
|
- <param name="p5suis:say_text" value="Created new module ${p5ant.WPS_Functions.PRODUCT.name.input}. Now openning it system UI "/>
|
|
|
- </antcall>-->
|
|
|
-
|
|
|
- <exec executable="open">
|
|
|
- <arg file="${p5ant.WPS_Functions.build}"/>
|
|
|
- <arg file="${p5ant.WPS_Functions.PRODUCT.xml}"/>
|
|
|
- </exec>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.info" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <echo>#93 will create new p5ant.WPS_Functions.basedir ${p5ant.WPS_Functions.basedir}</echo>
|
|
|
- <!--<mkdir dir="${p5ant.WPS_Functions.basedir}"/>-->
|
|
|
- </target>
|
|
|
+
|
|
|
|
|
|
- <target name="create_new_WPS_Function.basedir" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <mkdir dir="${p5ant.WPS_Functions.basedir}"/>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.PRODUCT" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <local name="create_new_WPS_Function.PRODUCT"/>
|
|
|
- <tempfile property="create_new_WPS_Function.PRODUCT" destdir="${p5ant.temp}" prefix="create_new_WPS_Function.PRODUCT" suffix=".xml" deleteonexit="false"/>
|
|
|
- <echoxml file="${create_new_WPS_Function.PRODUCT}" namespacepolicy="elementsOnly">
|
|
|
- <project xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
|
|
|
- xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
|
|
|
- basedir="../../." name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT" default="PRODUCT">
|
|
|
- <description>
|
|
|
- p5suis:say Created function ${p5ant.WPS_Functions.PRODUCT.name.input} with prefix ${p5ant.WPS_Functions.PRODUCT.prefix.input} by p5ant module
|
|
|
- </description>
|
|
|
- <!-- p5suis:say Created function ${p5ant.WPS_Functions.PRODUCT.name.input} with prefix ${p5ant.WPS_Functions.PRODUCT.prefix.input} by p5ant module -->
|
|
|
- <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
|
|
|
-
|
|
|
-
|
|
|
- <condition property="${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.ifdef.parent" taskname="${p5ant.WPS_Functions.PRODUCT.prefix.input}.parent.PRODUCT.ifdef">
|
|
|
- <isset property="WPS_Functions.PRODUCT.name"/>
|
|
|
- </condition>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.name" value="$${WPS_Functions.PRODUCT.name}.${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.vendor-domain" value="$${WPS_Functions.PRODUCT.name}.${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir" value="$${WPS_Functions.basedir}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.build.xml" value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/build_${p5ant.WPS_Functions.PRODUCT.prefix.input}.xml"/>
|
|
|
-
|
|
|
- <!--<property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository" value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/repository"/>-->
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository" value="$${WPS_Functions.repository}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.install" value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/install"/>
|
|
|
- <!--<property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/temp"/>-->
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp" location="$${WPS_Functions.temp}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.structure.xml" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.structure.xml"/>
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.xsl.p5xsls.xml" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.include.xsl.p5xsls.xml"/>
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.install_example" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository}/install_example.file"/>
|
|
|
-
|
|
|
- <!-- will transform to property -->
|
|
|
- <p5ant.condition property="${p5ant.WPS_Functions.PRODUCT.prefix.input}.git" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.git">
|
|
|
- <p5ant.isset property="${p5ant.WPS_Functions.PRODUCT.git.url.input}"/>
|
|
|
- </p5ant.condition>
|
|
|
-
|
|
|
-
|
|
|
- <target name="PRODUCT" description="to create basedir, includes and install" depends="basedir,p5xsls.xml"/>
|
|
|
-
|
|
|
- <target name="basedir" description="to create local dirs">
|
|
|
- <propertyset id="${p5ant.WPS_Functions.PRODUCT.prefix.input}.local.properties">
|
|
|
- <propertyref prefix="${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
- <mapper type="glob" from="${p5ant.WPS_Functions.PRODUCT.prefix.input}.*" to="local.*"/>
|
|
|
- </propertyset>
|
|
|
- <antcall target="WPS_Functions.basedir.p5bws:dirs" inheritall="false">
|
|
|
- <propertyset refid="${p5ant.WPS_Functions.PRODUCT.prefix.input}.local.properties"/>
|
|
|
- </antcall>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="clean" description="To delete all temp and repository">
|
|
|
- <antcall target="WPS_Functions.basedir.p5bws:dirs.clean" inheritall="false">
|
|
|
- <propertyset refid="${p5ant.WPS_Functions.PRODUCT.prefix.input}.local.properties"/>
|
|
|
- </antcall>
|
|
|
- </target>
|
|
|
-
|
|
|
-
|
|
|
- <target name="clean.temp" description="To delete all temp and repository">
|
|
|
- <antcall target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean" inheritall="false">
|
|
|
- <propertyset refid="${p5ant.WPS_Functions.PRODUCT.prefix.input}.local.properties"/>
|
|
|
- </antcall>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="parent.PRODUCT.ifdef" unless="${p5ant.WPS_Functions.PRODUCT.prefix.input}.WPS_Functions.PRODUCT.ifdef.parent">
|
|
|
- <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml" </fail>
|
|
|
- </target>
|
|
|
-
|
|
|
- </project>
|
|
|
- </echoxml>
|
|
|
- <!--<exec executable="open">
|
|
|
- <arg file="${create_new_WPS_Function.PRODUCT}"/>
|
|
|
- </exec>-->
|
|
|
- <xslt basedir="${p5ant.temp}" style="${p5ant.create_new_WPS_Function.xsl}" in="${create_new_WPS_Function.PRODUCT}" out="${p5ant.WPS_Functions.PRODUCT.xml}" >
|
|
|
- <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd}create_new_WPS_Function.PRODUCT"/>
|
|
|
- </factory>
|
|
|
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.name.input" expression="${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.prefix.input" expression="${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
- <param name="p5ant.xsl" expression="${p5ant.xsl}"/>
|
|
|
- </xslt>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.project" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <local name="p5ant.create_new_WPS_Function.project"/>
|
|
|
- <tempfile property="p5ant.create_new_WPS_Function.project" destdir="${p5ant.temp}" prefix="create_new_WPS_Function.project" suffix=".xml" deleteonexit="false"/>
|
|
|
- <echoxml file="${p5ant.create_new_WPS_Function.project}" namespacepolicy="elementsOnly">
|
|
|
- <project basedir="../../." name="${p5ant.WPS_Functions.PRODUCT.name.input}" default="default" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml" as="PRODUCT" />
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.xml" as="SYSTEM" />
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.xml" as="INSTALL"/>
|
|
|
-
|
|
|
- <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
|
|
|
- <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
|
|
|
- <target name="default" depends="PRODUCT.PRODUCT,INSTALL.INSTALL"/>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <target name="xsl-test" description="test usage of default xslt template for module">
|
|
|
- <xslt basedir="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}" style="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl}"
|
|
|
- in="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.install_example}" destdir="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp}"
|
|
|
- out="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp}/INSTALL.install_example.xsl-test.xml" force="true">
|
|
|
- <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/initialMode"
|
|
|
- value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/${p5ant.WPS_Functions.PRODUCT.name.input}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd}INSTALL.install_example.xsl-test.xml"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable" value="true"/>
|
|
|
- </factory>
|
|
|
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/${p5ant.WPS_Functions.PRODUCT.name.input}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd}basedir" expression="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}"/>
|
|
|
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/${p5ant.WPS_Functions.PRODUCT.name.input}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd}repository" expression="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository}"/>
|
|
|
- <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/${p5ant.WPS_Functions.PRODUCT.name.input}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd}temp" expression="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp}"/>
|
|
|
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <xmlcatalog refid="dita-ot.dtd.catalog"/>
|
|
|
- </xslt>
|
|
|
- </target>
|
|
|
-
|
|
|
- </project>
|
|
|
- </echoxml>
|
|
|
- <xslt basedir="${p5ant.temp}" style="${p5ant.create_new_WPS_Function.xsl}" in="${p5ant.create_new_WPS_Function.project}" out="${p5ant.WPS_Functions.build}" >
|
|
|
- <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd}create_new_WPS_Function.project"/>
|
|
|
- </factory>
|
|
|
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.name.input" expression="${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.prefix.input" expression="${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
- <param name="p5ant.xsl" expression="${p5ant.xsl}"/>
|
|
|
- </xslt>
|
|
|
- <delete file="${p5ant.create_new_WPS_Function.project}"/>
|
|
|
- </target>
|
|
|
-
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.xsd" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <local name="p5ant.create_new_WPS_Function.xsd"/>
|
|
|
- <tempfile property="p5ant.create_new_WPS_Function.xsd" destdir="${p5ant.temp}" prefix="create_new_WPS_Function.xsd" suffix=".xsd" deleteonexit="false"/>
|
|
|
- <echoxml file="${p5ant.create_new_WPS_Function.xsd}" namespacepolicy="elementsOnly">
|
|
|
- <schema xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
|
|
|
- <!--<import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd" xmlns="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
- </schema>
|
|
|
- </echoxml>
|
|
|
-
|
|
|
- <xslt basedir="${p5ant.temp}" style="${p5ant.create_new_WPS_Function_xsd.xsl}" in="${p5ant.create_new_WPS_Function.xsd}" out="${p5ant.WPS_Functions.xsd}" >
|
|
|
- <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd}create_new_WPS_Function.xsd"/>
|
|
|
- </factory>
|
|
|
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.name.input" expression="${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.prefix.input" expression="${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
- <param name="p5Type.basedir" expression="${p5Type.basedir}"/>
|
|
|
- </xslt>
|
|
|
- <delete file="${p5ant.create_new_WPS_Function.xsd}"/>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.xsl" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <local name="p5ant.create_new_WPS_Function.xsl"/>
|
|
|
- <tempfile property="p5ant.create_new_WPS_Function.xsl" destdir="${p5ant.temp}" prefix="create_new_WPS_Function.xsl" suffix=".xsl" deleteonexit="false"/>
|
|
|
- <echoxml file="${p5ant.create_new_WPS_Function.xsl}" namespacepolicy="elementsOnly">
|
|
|
- <template xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
|
|
|
- <!--<import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd" xmlns="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
- </template>
|
|
|
- </echoxml>
|
|
|
-
|
|
|
- <xslt basedir="${p5ant.temp}" style="${p5ant.create_new_WPS_Function_xsl.xsl}" in="${p5ant.create_new_WPS_Function.xsl}" out="${p5ant.WPS_Functions.xsl}" >
|
|
|
- <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
- <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd}create_new_WPS_Function.xsl"/>
|
|
|
- </factory>
|
|
|
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.name.input" expression="${p5ant.WPS_Functions.PRODUCT.name.input}"/>
|
|
|
- <param name="p5ant.WPS_Functions.PRODUCT.prefix.input" expression="${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
|
|
|
-
|
|
|
- </xslt>
|
|
|
- <delete file="${p5ant.create_new_WPS_Function.xsl}"/>
|
|
|
- </target>
|
|
|
- <target name="create_new_WPS_Function.SYSTEM" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <echoxml file="${p5ant.WPS_Functions.SYSTEM.xml}">
|
|
|
- <project basedir="../../" name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM">
|
|
|
-
|
|
|
- <include file="../build.WPS_Functions.SYSTEM.xml" optional="true"/>
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml" optional="true" as="PRODUCT"/>
|
|
|
-
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardOutPath" location="$${p5build_SE.SYSTEM.StandardOutPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
|
|
|
-
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardErrorPath" location="$${p5build_SE.SYSTEM.StandardErrorPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
|
|
|
-
|
|
|
- </project>
|
|
|
- </echoxml>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="create_new_WPS_Function.INSTALL" unless="p5ant.create_new_WPS_Function.exists">
|
|
|
- <echoxml file="${p5ant.WPS_Functions.INSTALL.xml}" >
|
|
|
- <project basedir="../../."
|
|
|
- name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL" default="INSTALL">
|
|
|
-
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml" />
|
|
|
- <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.git.xml" optional="yes" as="git" />
|
|
|
- <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.install_example" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.install}/install_example.file"/>
|
|
|
-
|
|
|
- <condition property="${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
|
|
|
- <not><available file="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository}/install_example.file"/></not>
|
|
|
- </condition>
|
|
|
-
|
|
|
- <target name="git" if="${p5ant.WPS_Functions.PRODUCT.prefix.input}.git.url">
|
|
|
- <antcall target="git.default"/>
|
|
|
- </target>
|
|
|
-
|
|
|
- <target name="INSTALL" depends="git,INSTALL.install_example"/>
|
|
|
-
|
|
|
-
|
|
|
- <target name="INSTALL.install_example" if="${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.install_example.ifdef">
|
|
|
- <copy file="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.install_example}" tofile="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.install_example}" />
|
|
|
- </target>
|
|
|
- </project>
|
|
|
- </echoxml>
|
|
|
- <mkdir dir="${p5ant.WPS_Functions.install}"/>
|
|
|
- <echoxml file="${p5ant.WPS_Functions.INSTALL.install_example}">
|
|
|
- <example>
|
|
|
- <description>
|
|
|
- This is {p5ant.WPS_Functions.INSTALL.install_example} to be
|
|
|
- copied to {p5ant.WPS_Functions.install_example} = ${p5ant.WPS_Functions.install_example}
|
|
|
- by {p5ant.WPS_Functions.INSTALL.xml} = ${p5ant.WPS_Functions.INSTALL.xml} target INSTALL
|
|
|
- </description>
|
|
|
- </example>
|
|
|
- </echoxml>
|
|
|
-
|
|
|
- </target>
|
|
|
+
|
|
|
|
|
|
</project>
|