You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-www.itmill.com.xml 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0"?>
  2. <project name="www.itmill.com" basedir="../" default="site">
  3. <target name="site" depends="clean-all, manual-html" />
  4. <target name="init">
  5. <!-- Create result dir unless already exists -->
  6. <mkdir dir="build/result" />
  7. <property file="build/VERSION" />
  8. <property name="product-file" value="itmill-toolkit" />
  9. <property name="product-name" value="IT Mill Toolkit" />
  10. <property name="toolkit-package" value="com/itmill/toolkit" />
  11. <property file="build/html-style.properties" />
  12. <!-- Destination files -->
  13. <property name="package-file-name" value="${product-file}-${version}.zip" />
  14. <property name="lib-bin-jar-name" value="${product-file}-${version}.jar" />
  15. <property name="demo-lib-jar-name" value="${product-file}-demo-${version}.jar" />
  16. <property name="lib-src-jar-name" value="${product-file}-src-${version}.jar" />
  17. <property name="themes-jar-name" value="${product-file}-themes-${version}.jar" />
  18. <property name="demo-war-name" value="${product-file}-demo-${version}.war" />
  19. <echo message="Prepared to build www.itmill.com html" />
  20. </target>
  21. <target name="manual-html" depends="init">
  22. <mkdir dir="build/result/www.itmill.com/manual" />
  23. <delete file="build/docbook/conf/temp.xsl" />
  24. <copy file="build/docbook/www.itmill.com/custom-www.itmill.com-docbook.xsl" tofile="build/docbook/conf/temp.xsl">
  25. <filterchain>
  26. <replacetokens>
  27. <token key="BODYHEADER" value="${www.manual.body.start1}${www.manual.docbook.head.title}${www.manual.body.start2}" />
  28. <token key="BODYFOOTER" value="${www.manual.body.end}" />
  29. </replacetokens>
  30. </filterchain>
  31. </copy>
  32. <path id="docbook-xsl.classpath">
  33. <pathelement path="build/lib/fserializer.jar" />
  34. <pathelement path="build/lib/xalan.jar" />
  35. <pathelement path="build/lib/xercesImpl.jar" />
  36. <pathelement path="build/lib/xml-apis.jar" />
  37. </path>
  38. <java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="1300m">
  39. <arg value="-in" />
  40. <arg value="doc/manual/book.xml" />
  41. <arg value="-xsl" />
  42. <arg value="build/docbook/conf/temp.xsl" />
  43. <arg value="-out" />
  44. <arg value="build/result/www.itmill.com/manual/index.html" />
  45. <arg value="-param" />
  46. <arg value="use.extensions" />
  47. <arg value="1" />
  48. <classpath refid="docbook-xsl.classpath" />
  49. </java>
  50. <delete file="build/docbook/conf/temp.xsl" />
  51. <copy todir="build/result/www.itmill.com/manual/img">
  52. <fileset dir="doc/manual/img">
  53. <exclude name="**/.svn" />
  54. </fileset>
  55. </copy>
  56. <!-- rename to JSP -->
  57. <move todir="build/result/www.itmill.com/manual">
  58. <fileset dir="build/result/www.itmill.com/manual">
  59. <include name="*.html" />
  60. </fileset>
  61. <mapper type="glob" from="*.html" to="*.jsp" />
  62. </move>
  63. <!-- make a zip file -->
  64. <zip destfile="build/result/www.itmill.com//itmill-toolkit-5-manual.zip" basedir="build/result/www.itmill.com/manual" />
  65. </target>
  66. <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - -->
  67. <target name="clean-all" depends="">
  68. <delete includeemptydirs="true" defaultexcludes="false">
  69. <fileset dir="build/result" includes="**/*" />
  70. </delete>
  71. <delete file="build/docbook/conf/temp.xsl" />
  72. </target>
  73. </project>