| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="schema"
- xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
- name="p5build_SE" default="save_build_properties">
- <description>
- for main purposes to provide properties for another builds eg: dita-ot
- </description>
-
- <!-- main properties controlled by licence -->
- <!-- @2018 property correct structure -->
-
-
-
- <include file="${basedir}/build_SE_basedir/build.p5build_SE.PRODUCT.xml"/>
- <include file="schema/build_SE_basedir/build.p5build_SE.PRODUCT.xml" optional="true"/>
- <include file="${basedir}/build_SE_basedir/build.p5build_SE.SYSTEM.xml" as="SYSTEM"/>
- <include file="${basedir}/build.p5build.GLOBALS.xml"/>
- <!--<property name="p5build_SE.PRODUCT.name" value="p5build_SE"/>
- <property name="p5build_SE.PRODUCT.vendor-domain" value="pl.procesy5"/>
- <property name="p5build_SE.PRODUCT.name.PROCESY5.basedir" value="${basedir}/build_SE_basedir"/>
- <property name="p5build_SE.PRODUCT.name.PROCESY5.temp" value="${p5build_SE.PRODUCT.name.PROCESY5.basedir}/temp"/>-->
- <!-- EOF @2018 property correct structure -->
-
-
-
-
-
-
-
-
-
-
-
-
-
- <!-- TODO in build_resource_ant.xml <property name="dita.dir" value="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
-
- <!-- task to maintain properties -->
-
-
-
- <include file="${basedir}/build_SE_basedir/build_SE.fail_if_user_is_not_root.xml" as="uid"/>
- <include file="${basedir}/build_SE_basedir/build_SE.check_OS.xml" as="check_OS"/>
- <target name="p5build_SE:LaunchDaemons.test" description="To detect if system is capable of LaunchDaemons like OSX Server - TODO to better check it universally">
- <condition property="p5build_SE.LaunchDaemons.test" taskname="p5build_SE:OSX_SERVER.cond">
- <and>
- <available file="/Library/LaunchDaemons/" />
- <available file="${bin.launchctl}" />
- </and>
- </condition>
- <echo>#61 $os.name= ${os.name} $p5build_SE.LaunchDaemons test $p5build_SE.LaunchDaemons.test=${p5build_SE.LaunchDaemons.test} against /Library/LaunchDaemons/ ${p5build_SE.LaunchDaemons} to insstall psuis:addToLaunchctl </echo>
- </target>
-
- <target name="p5build_SE:OSX_SERVER.cond" depends="p5build_SE:LaunchDaemons.test,p5build_SE:OSX_SERVER.ok,p5build_SE:OSX_SERVER.fail" description="to detect if it is osx server and get its properties"/>
-
-
-
- <target name="p5build_SE:OSX_SERVER.ok" if="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
- <property name="p5build_SE.LaunchDaemons" value="/Library/LaunchDaemons/"/>
- <echo>#86 set $p5build_SE.LaunchDaemons = ${p5build_SE.LaunchDaemons} </echo>
- </target>
-
- <target name="p5build_SE:OSX_SERVER.fail" unless="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
- <echo>#72 THIS IS NOT p5build_SE:OSX_SERVER ! </echo>
- </target>
-
- <target name="p5build_SE:OSX_SERVER:launchctl.load.plist">
- <input addproperty="OSX_SERVER.plistFile"/>
- <input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok" id="addToLaunchctl.plistFile.installed.touch_if_ok"/>
-
- <!--<local name="OSX_SERVER.launchctl.load.error"/>-->
- <echo>#87 z psuis.addToLaunchctl.plistFile.installed = ${psuis.addToLaunchctl.plistFile.installed}</echo>
- <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error" failifexecutionfails="false">
- <arg line="load ${OSX_SERVER.plistFile}"/>
- </exec>
- <echo> #94 check for errors: ${OSX_SERVER.launchctl.load.error} </echo>
- <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond">
- <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- <param name="addToLaunchctl.plistFile.installed.touch_if_ok" value="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
- <param name="addToLaunchctl.plistFile.installed.touch_if_ok.2" value="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
- </antcall>
- </target>
-
- <target name="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond" depends="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test,p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok,p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.fail,p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time">
- <input addproperty="OSX_SERVER.launchctl.load.error"/>
- <input addproperty="OSX_SERVER.plistFile"/>
- <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
- <!--<antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test">
- <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- </antcall>
- <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok">
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- </antcall>
- <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.fail">
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- </antcall>
- <antcall target="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time">
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
- <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
- </antcall>-->
- </target>
-
- <target name="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test">
- <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
- <echo>#124
- addToLaunchctl.plistFile.installed.touch_if_ok = ${addToLaunchctl.plistFile.installed.touch_if_ok}
- testing error OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
- </echo>
- <condition property="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test" taskname="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond">
- <contains string="${OSX_SERVER.launchctl.load.error}" substring="service already loaded"/>
- </condition>
- <condition property="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time" taskname="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond">
- <equals arg2="${OSX_SERVER.launchctl.load.error}" arg1=""/>
- </condition>
- <condition property="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_next_time" taskname="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond">
- <or>
- <equals arg2="${OSX_SERVER.launchctl.load.error}" arg1=""/>
- <contains string="${OSX_SERVER.launchctl.load.error}" substring="service already loaded"/>
- </or>
- </condition>
- </target>
-
- <target name="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok" if="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test">
- <input addproperty="OSX_SERVER.plistFile"/>
- <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
- <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error">
- <arg line="unload ${OSX_SERVER.plistFile}"/>
- </exec>
- <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error">
- <arg line="load ${OSX_SERVER.plistFile}"/>
- </exec>
- <echo>
- #142
- OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
- {addToLaunchctl.plistFile.installed.touch_if_ok} = ${addToLaunchctl.plistFile.installed.touch_if_ok}
-
- </echo>
- <touch file="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
- <chmod file="${addToLaunchctl.plistFile.installed.touch_if_ok}" perm="777"/>
- </target>
-
- <target name="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.fail" unless="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_next_time" >
- <input addproperty="OSX_SERVER.plistFile"/>
- <input addproperty="OSX_SERVER.launchctl.load.error"/>
- <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
- <echo>#122 There was another error than "service already loaded" and not tried to reload :
- OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
- OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
- p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test = ${p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test}
- p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time = ${p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time}
- addToLaunchctl.plistFile.installed.touch_if_ok = ${addToLaunchctl.plistFile.installed.touch_if_ok}
- </echo>
- </target>
-
- <target name="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time" if="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time" >
- <input addproperty="OSX_SERVER.plistFile"/>
- <input addproperty="OSX_SERVER.launchctl.load.error"/>
- <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
- <echo>#144 installed first time
- OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
- OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
- {addToLaunchctl.plistFile.installed.touch_if_ok} = ${addToLaunchctl.plistFile.installed.touch_if_ok}
- </echo>
- <touch file="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
- <chmod file="${addToLaunchctl.plistFile.installed.touch_if_ok}" perm="777"/>
- </target>
-
-
-
-
- <target name="p5build_SE.fail_if_user_is_root.check" >
- <property environment="env"/>
- <condition property="p5build_SE.fail_if_user_is_root.check" taskname="p5build_SE.fail_if_user_is_root.cond">
- <equals arg1="${env.USER}" arg2="root" />
- </condition>
- <echo> tested {env.USER} = ${env.USER}</echo>
- </target>
- <target name="p5build_SE.fail_if_user_is_root.cond" depends="p5build_SE.fail_if_user_is_root.check,p5build_SE.fail_if_user_is_root.ok,p5build_SE.fail_if_user_is_root.fail"/>
- <target name="p5build_SE.fail_if_user_is_root.ok" if="p5build_SE.fail_if_user_is_root.check" >
- <echo> OK user is not root ;-) </echo>
- </target>
-
- <target name="p5build_SE.fail_if_user_is_root.fail" unless="p5build_SE.fail_if_user_is_root.check" description="To fail command if the user is root">
- <fail> Current user is root - which was unantended</fail>
- </target>
-
- <target name="p5build_SE.fail_if_user_is_root" depends="p5build_SE.fail_if_user_is_root.cond" description="To fail command if the user is root"/>
-
-
-
- <target name="save_build_properties" depends=" SYSTEM.build_SE.SYSTEM ,build_SE.install_dirs,install_dirs.chmod,install_dirs.symlink,build_SE_read_procesy5_file_properties,build_SE_read_procesy5_default_db_properties,p5build_SE:OSX_SERVER.cond">
- <echo level="warning">#221 TODO TO REMOVE PROPERTIES !!! will properties to write ${build_SE.properties} and ${build_SE.properties.xml}</echo>
- <!-- <echoproperties destfile="${p5build_SE.properties}"/>
- <echoproperties destfile="${p5build_SE.properties.xml}" format="xml"/>
- <chmod file="${p5build_SE.properties}" perm="777" failonerror="false"/>
- <chmod file="${p5build_SE.properties.xml}" perm="777"/>
- <chown file="${p5build_SE.properties}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
- <chown file="${p5build_SE.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/> -->
- </target>
-
- <target name="build_SE.install_dirs">
- <echo level="verbose">#232 will make dir="${p5build_SE.basedir}" dir="${p5build_SE.temp}" and owner="${p5build_SE.SYSTEM.local-user}"
- $p5build_SE.INSTALL_ROOT.basedir = ${p5build_SE.INSTALL_ROOT.basedir}
- $p5build_SE.INSTALL_ROOT.configuration.dir = ${p5build_SE.INSTALL_ROOT.configuration.dir} </echo>
- <mkdir dir="${p5build_SE.basedir}"/>
- <mkdir dir="${p5build_SE.temp}"/>
- <mkdir dir="${p5build_SE.INSTALL_ROOT.basedir}"/>
- <mkdir dir="${p5build_SE.INSTALL_ROOT.configuration.dir}"/>
- <!-- TODO check if created - than chmod once -->
- <!--<antcall target="install_dirs.chmod"/>-->
- </target>
-
-
- <target name="install_dirs.chmod">
- <!--<chown owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false" type="dir">
- <fileset dir="${p5build_SE.INSTALL_ROOT.configuration.dir}" />
- <fileset dir="${p5build_SE.INSTALL_ROOT.basedir}"/>
- <fileset dir="${p5build_SE.temp}"/>
- <fileset dir="${p5build_SE.basedir}"/>
- </chown>-->
- <chown owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.INSTALL_ROOT.basedir}" failonerror="false" failifexecutionfails="false" type="dir"/>
- <chown owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.INSTALL_ROOT.configuration.dir}" failonerror="false" failifexecutionfails="false" type="dir"/>
- <chown owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.temp}" failonerror="false" failifexecutionfails="false" type="dir"/>
- <chown owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.basedir}" failonerror="false" failifexecutionfails="false" type="dir"/>
- <!--<antcall target="build_SE.install_dirs.symlink"/>-->
- </target>
-
- <target name="install_dirs.symlink" depends="install_dirs.symlink.configuration.dir,install_dirs.symlink.repository,install_dirs.symlink.temp,install_dirs.symlink.debug " >
- <echo>#266 Symlink created for ${p5build_SE.INSTALL_ROOT.temp.symlink} , ${p5build_SE.INSTALL_ROOT.configuration.dir}, ${p5build_SE.INSTALL_ROOT.repository}</echo>
- <symlink resource="${p5build_SE.INSTALL_ROOT.temp}" link="${p5build_SE.INSTALL_ROOT.temp.symlink}" failonerror="false"/>
- <symlink resource="${p5build_SE.INSTALL_ROOT.configuration.dir}" link="${p5build_SE.INSTALL_ROOT.configuration.dir.symlink}" failonerror="false"/>
- <symlink resource="${p5build_SE.INSTALL_ROOT.repository}" link="${p5build_SE.INSTALL_ROOT.repository.symlink}" failonerror="false"/>
- </target>
-
- <target name="install_dirs.symlink.configuration.dir" unless="p5build_SE.INSTALL_ROOT.configuration.dir.symlink__x3A__exists">
- <echo>#266-configuration.dir Symlink created for ${p5build_SE.INSTALL_ROOT.temp.symlink} , ${p5build_SE.INSTALL_ROOT.configuration.dir}, ${p5build_SE.INSTALL_ROOT.repository}</echo>
- <symlink resource="${p5build_SE.INSTALL_ROOT.configuration.dir}" link="${p5build_SE.INSTALL_ROOT.configuration.dir.symlink}" failonerror="false"/>
- </target>
- <target name="install_dirs.symlink.repository" unless="p5build_SE.INSTALL_ROOT.repository.symlink__x3A__exists">
- <echo>#266-repository Symlink created for ${p5build_SE.INSTALL_ROOT.repository}</echo>
- <symlink resource="${p5build_SE.INSTALL_ROOT.repository}" link="${p5build_SE.INSTALL_ROOT.repository.symlink}" failonerror="false"/>
- </target>
- <target name="install_dirs.symlink.temp" unless="p5build_SE.INSTALL_ROOT.temp.symlink__x3A__exists">
-
- <echo>#266-temp Symlink created for ${p5build_SE.INSTALL_ROOT.temp.symlink} </echo>
- <symlink resource="${p5build_SE.INSTALL_ROOT.temp}" link="${p5build_SE.INSTALL_ROOT.temp.symlink}" failonerror="false"/>
- </target>
-
- <target name="install_dirs.symlink.debug" unless="p5build_SE.INSTALL_ROOT.debug.symlink__x3A__exists">
-
- <echo>#266-debug Symlink created for ${p5build_SE.INSTALL_ROOT.debug.symlink} </echo>
- <symlink resource="${p5build_SE.INSTALL_ROOT.debug}" link="${p5build_SE.INSTALL_ROOT.debug.symlink}" failonerror="false"/>
- </target>
-
-
-
- <target name="build_SE_read_procesy5_file_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
- <condition property="build_SE_read_procesy5_file_properties_check" taskname="build_SE_read_procesy5_file_properties">
- <available file="${procesy5_config.folders.server}" />
- <!--<available file="${procesy5_config}" />-->
- </condition>
- <!--<antcall target="build_SE_read_procesy5_file_properties_failed"/>-->
- </target>
-
- <target unless="build_SE_read_procesy5_file_properties_check" name="build_SE_read_procesy5_file_properties_failed" description="echo inform that there is not config exists">
- <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.folders.server} file</echo>
- </target>
-
-
-
-
-
- <target if="build_SE_read_procesy5_file_properties_check" name="build_SE_read_procesy5_file_properties" depends="build_SE_read_procesy5_file_properties_check,build_SE_read_procesy5_file_properties_failed,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
-
- <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
- <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
- <mkdir dir="${build_SE_basedir.temp}"/>
- <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.folders_loadfile_xml" suffix=".xml" deleteonexit="yes" />
-
- <echoxml file="${procesy5_config.folders_loadfile_xml}">
- <procesy5_config>
- <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
- <procesy5_config.folders.server>${procesy5_config.folders.server_loadfile}</procesy5_config.folders.server>
- </procesy5_config>
- </echoxml>
- <chown file="${procesy5_config.folders_loadfile_xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
- <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders_loadfile_xml}" destdir="./" out="${procesy5_config.folders.properties.xml}" force="yes">
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5build_SE.build_procesy5_config.folders.properties" expression="${p5build_SE.build_procesy5_config.folders.properties}"/>
- <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
- <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
- <!--<param name="basedir" expression="${basedir}"/>-->
- </xslt>
-
- <!--<exec executable="open"><arg file="${procesy5_config.folders.properties.xml}"/></exec>-->
-
- <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders.properties.xml}" destdir="./" out="${p5build_SE.build_procesy5_config.folders.properties.xml}" force="yes">
- <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/build_SE.xsd}build_procesy5_config.folders.properties.xml"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5build_SE.build_procesy5_config.folders.properties" expression="${p5build_SE.build_procesy5_config.folders.properties}"/>
- <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
- <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
- <!--<param name="basedir" expression="${basedir}"/>-->
- </xslt>
- <!--<exec executable="open"><arg file="${p5build_SE.build_procesy5_config.folders.properties.xml}"/></exec>-->
- <ant antfile="${p5build_SE.build_procesy5_config.folders.properties.xml}"/>
- <loadproperties srcfile="${p5build_SE.build_procesy5_config.folders.properties}"/>
- <echo> #300 loaded $p5build_SE.build_procesy5_config.folders.... BI_audit_KW_requested_COLUMN.mount_point ${procesy5_config.folders.properties.xml} from ${p5build_SE.build_procesy5_config.folders.properties}; antfile ${p5build_SE.build_procesy5_config.folders.properties.xml}
- and also build with properties to default $p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point = ${p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point}
- $p5build_SE.build_procesy5_config.folders.properties = ${p5build_SE.build_procesy5_config.folders.properties}
- </echo>
- <chown file="${procesy5_config.folders.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
-
-
- </target>
-
-
-
-
- <!-- default_db -->
-
-
- <target name="build_SE_read_procesy5_default_db_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
- <condition property="build_SE_read_procesy5_default_db_properties_check" taskname="build_SE_read_procesy5_default_db_properties">
- <available file="${procesy5_config.default_db.server}" />
- </condition>
- <!--<antcall target="build_SE_read_procesy5_default_db_properties_failed"/>-->
- </target>
-
- <target unless="build_SE_read_procesy5_default_db_properties_check" name="build_SE_read_procesy5_default_db_properties_failed" description="echo inform that there is not config exists">
- <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.default_db.server} file</echo>
- </target>
-
-
- <target if="build_SE_read_procesy5_default_db_properties_check" name="build_SE_read_procesy5_default_db_properties" depends="build_SE_read_procesy5_default_db_properties_check,build_SE_read_procesy5_default_db_properties_failed,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
- <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
- <loadfile property="procesy5_config.default_db.server_loadfile" srcfile="${procesy5_config.default_db.server}"/>
- <tempfile property="procesy5_config.default_db_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.default_db_loadfile_xml" suffix=".xml" deleteonexit="yes"/>
-
- <echoxml file="${procesy5_config.default_db_loadfile_xml}">
- <procesy5_config>
- <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
- <procesy5_config.default_db.server>${procesy5_config.default_db.server_loadfile}</procesy5_config.default_db.server>
- </procesy5_config>
- </echoxml>
- <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db_loadfile_xml}" destdir="./" out="${procesy5_config.default_db.properties.xml}" force="false" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="procesy5_config.default_db.properties" expression="${procesy5_config.default_db.properties}"/>
- <param name="basedir" expression="${basedir}"/>
- <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
- <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
- <!--<param name="basedir" expression="${basedir}"/>-->
- </xslt>
-
- <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db.properties.xml}" destdir="./" out="${p5build_SE.build_procesy5_config.default_db.properties.xml}" force="false" failonerror="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/build_SE.xsd}build_procesy5_config.default_db.properties.xml"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="procesy5_config.default_db.properties" expression="${procesy5_config.default_db.properties}"/>
- <param name="basedir" expression="${basedir}"/>
- <param name="p5build_SE.build_procesy5_config.default_db.properties" expression="${p5build_SE.build_procesy5_config.default_db.properties}"/>
- <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
- <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
- <!--<param name="basedir" expression="${basedir}"/>-->
- </xslt>
- <ant antfile="${p5build_SE.build_procesy5_config.default_db.properties.xml}"/>
- <loadproperties srcfile="${p5build_SE.build_procesy5_config.default_db.properties}"/>
- <echo> #342 loaded $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml} from ${p5build_SE.build_procesy5_config.default_db.properties}; antfile ${p5build_SE.build_procesy5_config.default_db.properties.xml}
- and also build with properties to default database = p5build_SE.procesy5_config.default_db.server.type = ${p5build_SE.procesy5_config.default_db.server.type}
- $procesy5_config.default_db.properties.xml = ${procesy5_config.default_db.properties.xml}
- </echo>
-
- <loadfile property="procesy5_config.default_db.properties.xml.file" srcfile="${procesy5_config.default_db.properties.xml}"/>
- <!--<echo>#60 reading $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml.file}
- ${procesy5_config.default_db.properties.xml.file}
- </echo>-->
- </target>
-
-
- <target name="procesy5_root_build_save_procesy5_file_properties" description="TODO in install licence task"/>
-
-
-
- </project>
|