Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

build-www.itmill.com.xml 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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"
  25. tofile="build/docbook/conf/temp.xsl">
  26. <filterchain>
  27. <replacetokens>
  28. <token key="BODYHEADER" value="${www.manual.body.start1}${www.manual.docbook.head.title}${www.manual.body.start2}" />
  29. <token key="BODYFOOTER" value="${www.manual.body.end}" />
  30. </replacetokens>
  31. </filterchain>
  32. </copy>
  33. <path id="docbook-xsl.classpath">
  34. <pathelement path="build/lib/fserializer.jar" />
  35. <pathelement path="build/lib/xalan.jar" />
  36. <pathelement path="build/lib/xercesImpl.jar" />
  37. <pathelement path="build/lib/xml-apis.jar" />
  38. </path>
  39. <java classname="org.apache.xalan.xslt.Process" failonerror="yes" fork="yes" maxmemory="1300m">
  40. <arg value="-in" />
  41. <arg value="doc/manual/book.xml" />
  42. <arg value="-xsl" />
  43. <arg value="build/docbook/conf/temp.xsl" />
  44. <arg value="-out" />
  45. <arg value="build/result/www.itmill.com/manual/index.html" />
  46. <arg value="-param" />
  47. <arg value="use.extensions" />
  48. <arg value="1" />
  49. <classpath refid="docbook-xsl.classpath" />
  50. </java>
  51. <delete file="build/docbook/conf/temp.xsl" />
  52. <copy todir="build/result/www.itmill.com/manual/img">
  53. <fileset dir="doc/manual/img">
  54. <exclude name="**/.svn" />
  55. </fileset>
  56. </copy>
  57. </target>
  58. <!-- Clean results - - - - - - - - - - - - - - - - - - - - - - - - - -->
  59. <target name="clean-all" depends="">
  60. <delete includeemptydirs="true" defaultexcludes="false">
  61. <fileset dir="build/result" includes="**/*" />
  62. </delete>
  63. <delete file="build/docbook/conf/temp.xsl" />
  64. </target>
  65. </project>