build.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="procesy5_root_build" default="procesy5_root_build_properties_save">
  3. <description>
  4. for main purposes to provide properties for another builds eg: dita-ot
  5. </description>
  6. <!-- main properties controlled by licence -->
  7. <property name="SERVER_ADDRESS" value="biuro.biall-net.pl"/> <!-- to be set in licence file and to be generated -->
  8. <!-- this built own properties -->
  9. <property name="procesy5_root_build_basedir" location="${basedir}/procesy5_root_build"/> <!-- to keep files there some temp etc -->
  10. <property name="procesy5_root_build_basedir.temp" location="${procesy5_root_build_basedir}/temp"/>
  11. <property name="procesy5_root_build_properties" location="${procesy5_root_build_basedir}/procesy5_root_build_properties.xml"/>
  12. <property name="procesy5_config.folders.xsl" location="${procesy5_root_build_basedir}/procesy5_config.folders.xsl"/>
  13. <!-- components -->
  14. <property name="dita-ot-toolkit" location="${basedir}/stuff/dita-ot-2.3.3"/>
  15. <property name="procesy5_config" location="${basedir}/config"/>
  16. <property name="procesy5_config.folders" location="${procesy5_config}/.cnf--folders.ini.php"/>
  17. <property name="procesy5_config.folders.server" location="${procesy5_config}/.cnf--folders-${SERVER_ADDRESS}.ini.php"/>
  18. <property name="procesy5_config.folders.properties.xml" location="${procesy5_root_build_basedir}/procesy5_config.folders.properties.xml"/>
  19. <!-- task to maintain properties -->
  20. <target name="procesy5_root_build_properties_save" depends="procesy5_root_build_read_procesy5_file_properties">
  21. <echoproperties destfile="${procesy5_root_build_properties}" format="xml"/>
  22. </target>
  23. <target name="procesy5_root_build.install">
  24. <mkdir dir="${procesy5_root_build_basedir}"/>
  25. <mkdir dir="${procesy5_root_build_basedir_temp}"/>
  26. </target>
  27. <target name="procesy5_root_build_read_procesy5_file_properties" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
  28. <loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>
  29. <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
  30. <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${procesy5_root_build_basedir.temp}" suffix=".xml" deleteonexit="no"/>
  31. <echoxml file="${procesy5_config.folders_loadfile_xml}">
  32. <procesy5_config>
  33. <procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>
  34. <procesy5_config.folders.server>${procesy5_config.folders_loadfile}</procesy5_config.folders.server>
  35. </procesy5_config>
  36. </echoxml>
  37. <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders_loadfile_xml}" destdir="./" out="${procesy5_config.folders.properties.xml}" >
  38. <factory name="net.sf.saxon.TransformerFactoryImpl">
  39. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  40. </factory>
  41. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  42. <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
  43. <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
  44. <!--<param name="basedir" expression="${basedir}"/>-->
  45. </xslt>
  46. </target>
  47. <target name="procesy5_root_build_save_procesy5_file_properties" description="TODO in install licence task"/>
  48. </project>