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

build.xml 2.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <project name="build-site" default="docs" basedir=".">
  2. <!-- Initialization properties -->
  3. <property name="project.name" value="ant"/>
  4. <property name="docs.src" value="./xdocs"/>
  5. <property name="docs.dest" value="./docs"/>
  6. <path id="anakia.classpath">
  7. <fileset dir="../../jakarta-site2/lib">
  8. <include name="*.jar"/>
  9. </fileset>
  10. </path>
  11. <target name="prepare">
  12. <available classname="org.apache.velocity.anakia.AnakiaTask"
  13. property="AnakiaTask.present">
  14. <classpath refid="anakia.classpath"/>
  15. </available>
  16. </target>
  17. <target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
  18. <echo>
  19. AnakiaTask is not present! Please check to make sure that
  20. velocity.jar is in your classpath.
  21. </echo>
  22. </target>
  23. <target name="docs" depends="prepare-error" if="AnakiaTask.present">
  24. <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
  25. <classpath refid="anakia.classpath"/>
  26. </taskdef>
  27. <anakia basedir="${docs.src}" destdir="${docs.dest}/"
  28. extension=".html" style="./site.vsl"
  29. projectFile="stylesheets/project.xml"
  30. excludes="**/stylesheets/** faq.xml"
  31. includes="**/*.xml"
  32. lastModifiedCheck="true"
  33. templatePath="./xdocs/stylesheets">
  34. </anakia>
  35. <anakia basedir="${docs.src}" destdir="${docs.dest}/"
  36. extension=".html" style="./faq.vsl"
  37. projectFile="stylesheets/project.xml"
  38. includes="faq.xml"
  39. lastModifiedCheck="true"
  40. templatePath="./xdocs/stylesheets">
  41. </anakia>
  42. <!-- In case we have images some day
  43. <copy todir="${docs.dest}/images" filtering="no">
  44. <fileset dir="${docs.src}/images">
  45. <include name="**/*.gif"/>
  46. <include name="**/*.jpeg"/>
  47. <include name="**/*.jpg"/>
  48. </fileset>
  49. </copy>
  50. -->
  51. <!-- In case we have CSS someday
  52. <copy todir="${docs.dest}" filtering="no">
  53. <fileset dir="${docs.src}">
  54. <include name="**/*.css"/>
  55. </fileset>
  56. </copy>
  57. -->
  58. </target>
  59. </project>