build_SE.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="schema"
  3. xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd"
  4. name="p5build_SE" default="save_build_properties">
  5. <description>
  6. for main purposes to provide properties for another builds eg: dita-ot
  7. </description>
  8. <!-- main properties controlled by licence -->
  9. <!-- @2018 property correct structure -->
  10. <include file="${basedir}/build_SE_basedir/build.p5build_SE.PRODUCT.xml"/>
  11. <include file="${basedir}/build_SE_basedir/build.p5build_SE.SYSTEM.xml" as="SYSTEM"/>
  12. <include file="${basedir}/build.p5build.GLOBALS.xml"/>
  13. <!--<property name="p5build_SE.PRODUCT.name" value="p5build_SE"/>
  14. <property name="p5build_SE.PRODUCT.vendor-domain" value="pl.procesy5"/>
  15. <property name="p5build_SE.PRODUCT.name.PROCESY5.basedir" value="${basedir}/build_SE_basedir"/>
  16. <property name="p5build_SE.PRODUCT.name.PROCESY5.temp" value="${p5build_SE.PRODUCT.name.PROCESY5.basedir}/temp"/>-->
  17. <!-- EOF @2018 property correct structure -->
  18. <property name="SERVER_ADDRESS" value="biuro.biall-net.pl"/> <!-- to be set in licence file and to be generated -->
  19. <property name="TargetNamespaceBindings" value="https://biuro.biall-net.pl"/> <!-- default https://biuro.biall-net.pl for API working in this domain -->
  20. <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindings}/wfs"/>
  21. <property name="TargetNamespaceBindingsApiUrl" value="${TargetNamespaceBindingsApi}/wfs-data.php"/>
  22. <property name="targetNamespace_DEFAULTS_prefix" value="default_db"/>
  23. <property name="targetNamespace_DEFAULTS_prefix_objects" value="default_objects"/>
  24. <property name="targetNamespace_DEFAULTS" value="${TargetNamespaceBindings}/xmlschema_procesy5/${targetNamespace_DEFAULTS_prefix}"/> <!-- namespace do lokalnego bindowania do default_db http://biuro.biall-net.pl/xmlschema_procesy5/default_db -->
  25. <property name="config_dir" value="${basedir}/config"/>
  26. <property name="NamespaceBinding.xml" value="${config_dir}/NamespaceBinding.xml"/> <!-- file with binding informations -->
  27. <!-- this built own properties -->
  28. <property name="build_SE.xml" value="${basedir}/../build_SE.xml"/>
  29. <property name="build_SE_basedir" value="${basedir}/build_SE_basedir"/> <!-- to keep files there some temp etc -->
  30. <property name="build_SE_basedir.temp" value="${build_SE_basedir}/temp"/>
  31. <property name="build_SE.properties" value="${build_SE_basedir}/.build_SE.properties"/>
  32. <property name="build_SE.properties.xml" value="${build_SE.properties}.xml"/>
  33. <property name="procesy5_config.folders.xsl" value="${build_SE_basedir}/procesy5_config.folders.xsl"/>
  34. <property name="procesy5_config.default_db.xsl" value="${build_SE_basedir}/procesy5_config.default_db.xsl"/>
  35. <property name="procesy5_config.default_db.properties.xml" value="${build_SE_basedir}/.procesy5_config.default_db.properties.xml"/>
  36. <property name="procesy5_config.default_db.properties" value="${build_SE_basedir}/.procesy5_config.default_db.properties"/>
  37. <property name="default_db_targetNamespace_detect_string" value="default_db/table/"/> <!-- intended to be in ${basedir}/table ? -->
  38. <property name="zasob_id_db_targetNamespace_detect_string" value="https://biuro.biall-net.pl/api/"/> <!-- example targetNamespace="https://biuro.biall-net.pl/api/17666/" -->
  39. <!-- components -->
  40. <property name="dita-ot-toolkit" value="${basedir}/../stuff/dita-ot-2.3.3"/>
  41. <property name="procesy5_config" value="${basedir}/../config"/>
  42. <property name="bin.launchctl" value="/bin/launchctl"/>
  43. <!--<property name="procesy5_config.folders" value="${procesy5_config}/.cnf-\-folders.ini.php"/>-->
  44. <property name="procesy5_config.folders.server" value="${procesy5_config}/.cnf--folders-${SERVER_ADDRESS}.ini.php"/>
  45. <property name="procesy5_config.default_db.server" value="${procesy5_config}/.cnf--default_db-${SERVER_ADDRESS}.ini.php"/>
  46. <property name="procesy5_config.folders.properties.xml" value="${build_SE_basedir}/.procesy5_config.folders.properties.xml"/>
  47. <!-- 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"/>-->
  48. <!-- TODO config/licence/to handle params to SYNC with xmlschema and WPS_Functions -->
  49. <property name="bootstrap.php" value="${basedir}/../se-lib/bootstrap.php"/> <!-- used in php scripts to execute as root require("/Library/Server/Web/Data/Sites/SE-producition-git/SE/se-lib/bootstrap.php"); -->
  50. <!-- task to maintain properties -->
  51. <include file="${basedir}/build_SE_basedir/build_SE.fail_if_user_is_not_root.xml" as="uid"/>
  52. <include file="${basedir}/build_SE_basedir/build_SE.check_OS.xml" as="check_OS"/>
  53. <target name="p5build_SE:LaunchDaemons.test" description="To detect if system is capable of LaunchDaemons like OSX Server - TODO to better check it universally">
  54. <condition property="p5build_SE.LaunchDaemons.test" taskname="p5build_SE:OSX_SERVER.cond">
  55. <and>
  56. <available file="/Library/LaunchDaemons/" />
  57. <available file="${bin.launchctl}" />
  58. </and>
  59. </condition>
  60. <echo>#61 $os.name= ${os.name} $p5build_SE.LaunchDaemons = ${p5build_SE.LaunchDaemons} to insstall psuis:addToLaunchctl </echo>
  61. </target>
  62. <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"/>
  63. <target name="p5build_SE:OSX_SERVER.ok" if="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
  64. <property name="p5build_SE.LaunchDaemons" value="/Library/LaunchDaemons/"/>
  65. </target>
  66. <target name="p5build_SE:OSX_SERVER.fail" unless="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
  67. <echo>#72 THIS IS NOT p5build_SE:OSX_SERVER ! </echo>
  68. </target>
  69. <target name="p5build_SE:OSX_SERVER:launchctl.load.plist">
  70. <input addproperty="OSX_SERVER.plistFile"/>
  71. <input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok" id="addToLaunchctl.plistFile.installed.touch_if_ok"/>
  72. <!--<local name="OSX_SERVER.launchctl.load.error"/>-->
  73. <echo>#87 z psuis.addToLaunchctl.plistFile.installed = ${psuis.addToLaunchctl.plistFile.installed}</echo>
  74. <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error" failifexecutionfails="false">
  75. <arg line="load ${OSX_SERVER.plistFile}"/>
  76. </exec>
  77. <echo> #94 check for errors: ${OSX_SERVER.launchctl.load.error} </echo>
  78. <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.cond">
  79. <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
  80. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  81. <param name="addToLaunchctl.plistFile.installed.touch_if_ok" value="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
  82. <param name="addToLaunchctl.plistFile.installed.touch_if_ok.2" value="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
  83. </antcall>
  84. </target>
  85. <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">
  86. <input addproperty="OSX_SERVER.launchctl.load.error"/>
  87. <input addproperty="OSX_SERVER.plistFile"/>
  88. <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
  89. <!--<antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test">
  90. <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
  91. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  92. </antcall>
  93. <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok">
  94. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  95. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  96. </antcall>
  97. <antcall target="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.fail">
  98. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  99. <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
  100. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  101. </antcall>
  102. <antcall target="p5build_SE.OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.ok_first_time">
  103. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  104. <param name="OSX_SERVER.launchctl.load.error" value="${OSX_SERVER.launchctl.load.error}"/>
  105. <param name="OSX_SERVER.plistFile" value="${OSX_SERVER.plistFile}"/>
  106. </antcall>-->
  107. </target>
  108. <target name="p5build_SE:OSX_SERVER:launchctl.load.plist.unload_and_load_if_loaded.test">
  109. <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
  110. <echo>#124
  111. addToLaunchctl.plistFile.installed.touch_if_ok = ${addToLaunchctl.plistFile.installed.touch_if_ok}
  112. testing error OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
  113. </echo>
  114. <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">
  115. <contains string="${OSX_SERVER.launchctl.load.error}" substring="service already loaded"/>
  116. </condition>
  117. <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">
  118. <equals arg2="${OSX_SERVER.launchctl.load.error}" arg1=""/>
  119. </condition>
  120. <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">
  121. <or>
  122. <equals arg2="${OSX_SERVER.launchctl.load.error}" arg1=""/>
  123. <contains string="${OSX_SERVER.launchctl.load.error}" substring="service already loaded"/>
  124. </or>
  125. </condition>
  126. </target>
  127. <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">
  128. <input addproperty="OSX_SERVER.plistFile"/>
  129. <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
  130. <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error">
  131. <arg line="unload ${OSX_SERVER.plistFile}"/>
  132. </exec>
  133. <exec executable="${bin.launchctl}" outputproperty="OSX_SERVER.launchctl.load.error">
  134. <arg line="load ${OSX_SERVER.plistFile}"/>
  135. </exec>
  136. <echo>
  137. #142
  138. OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
  139. {addToLaunchctl.plistFile.installed.touch_if_ok} = ${addToLaunchctl.plistFile.installed.touch_if_ok}
  140. </echo>
  141. <touch file="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
  142. <chmod file="${addToLaunchctl.plistFile.installed.touch_if_ok}" perm="777"/>
  143. </target>
  144. <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" >
  145. <input addproperty="OSX_SERVER.plistFile"/>
  146. <input addproperty="OSX_SERVER.launchctl.load.error"/>
  147. <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
  148. <echo>#122 There was another error than "service already loaded" and not tried to reload :
  149. OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
  150. OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
  151. 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}
  152. 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}
  153. addToLaunchctl.plistFile.installed.touch_if_ok = ${addToLaunchctl.plistFile.installed.touch_if_ok}
  154. </echo>
  155. </target>
  156. <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" >
  157. <input addproperty="OSX_SERVER.plistFile"/>
  158. <input addproperty="OSX_SERVER.launchctl.load.error"/>
  159. <!--<input addproperty="addToLaunchctl.plistFile.installed.touch_if_ok"/>-->
  160. <echo>#144 installed first time
  161. OSX_SERVER.plistFile = ${OSX_SERVER.plistFile}
  162. OSX_SERVER.launchctl.load.error = ${OSX_SERVER.launchctl.load.error}
  163. {addToLaunchctl.plistFile.installed.touch_if_ok} = ${addToLaunchctl.plistFile.installed.touch_if_ok}
  164. </echo>
  165. <touch file="${addToLaunchctl.plistFile.installed.touch_if_ok}"/>
  166. <chmod file="${addToLaunchctl.plistFile.installed.touch_if_ok}" perm="777"/>
  167. </target>
  168. <target name="p5build_SE.fail_if_user_is_root.check" >
  169. <property environment="env"/>
  170. <condition property="p5build_SE.fail_if_user_is_root.check" taskname="p5build_SE.fail_if_user_is_root.cond">
  171. <equals arg1="${env.USER}" arg2="root" />
  172. </condition>
  173. <echo> tested {env.USER} = ${env.USER}</echo>
  174. </target>
  175. <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"/>
  176. <target name="p5build_SE.fail_if_user_is_root.ok" if="p5build_SE.fail_if_user_is_root.check" >
  177. <echo> OK user is not root ;-) </echo>
  178. </target>
  179. <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">
  180. <fail> Current user is root - which was unantended</fail>
  181. </target>
  182. <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"/>
  183. <target name="save_build_properties" depends=" SYSTEM.build_SE.SYSTEM ,build_SE.install_dirs,build_SE_read_procesy5_file_properties,build_SE_read_procesy5_default_db_properties,p5build_SE:OSX_SERVER.cond">
  184. <echo level="warning">#221 will properties to write ${build_SE.properties} and ${build_SE.properties.xml}</echo>
  185. <echoproperties destfile="${p5build_SE.properties}"/>
  186. <echoproperties destfile="${p5build_SE.properties.xml}" format="xml"/>
  187. <chmod file="${p5build_SE.properties}" perm="777" failonerror="false"/>
  188. <chmod file="${p5build_SE.properties.xml}" perm="777"/>
  189. <chown executable="${chown}" file="${p5build_SE.properties}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
  190. <chown executable="${chown}" file="${p5build_SE.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
  191. </target>
  192. <target name="build_SE.install_dirs">
  193. <echo level="verbose">#232 will make dir="${p5build_SE.basedir}" dir="${p5build_SE.temp}" and owner="${p5build_SE.SYSTEM.local-user}" </echo>
  194. <mkdir dir="${p5build_SE.basedir}"/>
  195. <mkdir dir="${p5build_SE.temp}"/>
  196. <chown executable="${chown}" file="${p5build_SE.basedir}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false" />
  197. <chown executable="${chown}" file="${p5build_SE.temp}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
  198. </target>
  199. <target name="build_SE_read_procesy5_file_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
  200. <condition property="build_SE_read_procesy5_file_properties_check" taskname="build_SE_read_procesy5_file_properties">
  201. <available file="${procesy5_config.folders.server}" />
  202. <!--<available file="${procesy5_config}" />-->
  203. </condition>
  204. <antcall target="build_SE_read_procesy5_file_properties_failed"/>
  205. </target>
  206. <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">
  207. <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.folders.server} file</echo>
  208. </target>
  209. <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.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
  210. <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
  211. <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
  212. <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.folders_loadfile_xml" suffix=".xml" deleteonexit="no"/>
  213. <echoxml file="${procesy5_config.folders_loadfile_xml}">
  214. <procesy5_config>
  215. <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
  216. <procesy5_config.folders.server>${procesy5_config.folders.server_loadfile}</procesy5_config.folders.server>
  217. </procesy5_config>
  218. </echoxml>
  219. <chown executable="${chown}" file="${procesy5_config.folders_loadfile_xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
  220. <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders_loadfile_xml}" destdir="./" out="${procesy5_config.folders.properties.xml}" force="yes">
  221. <factory name="net.sf.saxon.TransformerFactoryImpl">
  222. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  223. </factory>
  224. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  225. <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
  226. <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
  227. <!--<param name="basedir" expression="${basedir}"/>-->
  228. </xslt>
  229. <chown executable="${chown}" file="${procesy5_config.folders.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
  230. <loadfile property="procesy5_config.folders.properties.xml.file" srcfile="${procesy5_config.folders.properties.xml}"/>
  231. <!--<echo>#60 reading $procesy5_config.folders.properties.xml ${procesy5_config.folders.properties.xml.file}
  232. ${procesy5_config.folders.properties.xml.file}
  233. </echo>-->
  234. </target>
  235. <!-- default_db -->
  236. <target name="build_SE_read_procesy5_default_db_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
  237. <condition property="build_SE_read_procesy5_default_db_properties_check" taskname="build_SE_read_procesy5_default_db_properties">
  238. <available file="${procesy5_config.default_db.server}" />
  239. </condition>
  240. <antcall target="build_SE_read_procesy5_default_db_properties_failed"/>
  241. </target>
  242. <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">
  243. <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.default_db.server} file</echo>
  244. </target>
  245. <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.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
  246. <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
  247. <loadfile property="procesy5_config.default_db.server_loadfile" srcfile="${procesy5_config.default_db.server}"/>
  248. <tempfile property="procesy5_config.default_db_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.default_db_loadfile_xml" suffix=".xml" deleteonexit="no"/>
  249. <echoxml file="${procesy5_config.default_db_loadfile_xml}">
  250. <procesy5_config>
  251. <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
  252. <procesy5_config.default_db.server>${procesy5_config.default_db.server_loadfile}</procesy5_config.default_db.server>
  253. </procesy5_config>
  254. </echoxml>
  255. <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db_loadfile_xml}" destdir="./" out="${procesy5_config.default_db.properties.xml}" >
  256. <factory name="net.sf.saxon.TransformerFactoryImpl">
  257. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  258. </factory>
  259. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  260. <param name="procesy5_config.default_db.properties" expression="${procesy5_config.default_db.properties}"/>
  261. <param name="basedir" expression="${basedir}"/>
  262. <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
  263. <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
  264. <!--<param name="basedir" expression="${basedir}"/>-->
  265. </xslt>
  266. <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}" >
  267. <factory name="net.sf.saxon.TransformerFactoryImpl">
  268. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  269. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/build_SE.xsd}build_procesy5_config.default_db.properties.xml"/>
  270. </factory>
  271. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  272. <param name="procesy5_config.default_db.properties" expression="${procesy5_config.default_db.properties}"/>
  273. <param name="basedir" expression="${basedir}"/>
  274. <param name="p5build_SE.build_procesy5_config.default_db.properties" expression="${p5build_SE.build_procesy5_config.default_db.properties}"/>
  275. <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
  276. <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
  277. <!--<param name="basedir" expression="${basedir}"/>-->
  278. </xslt>
  279. <ant antfile="${p5build_SE.build_procesy5_config.default_db.properties.xml}"/>
  280. <loadproperties srcfile="${p5build_SE.build_procesy5_config.default_db.properties}"></loadproperties>
  281. <echo> loaded $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml}
  282. and also build with properties to default database = p5build_SE.procesy5_config.default_db.server.type = ${p5build_SE.procesy5_config.default_db.server.type}
  283. </echo>
  284. <loadfile property="procesy5_config.default_db.properties.xml.file" srcfile="${procesy5_config.default_db.properties.xml}"/>
  285. <!--<echo>#60 reading $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml.file}
  286. ${procesy5_config.default_db.properties.xml.file}
  287. </echo>-->
  288. </target>
  289. <target name="procesy5_root_build_save_procesy5_file_properties" description="TODO in install licence task"/>
  290. </project>