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.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/** empty.xml"
  31. includes="**/*.xml"
  32. lastModifiedCheck="true"
  33. velocityPropertiesFile="${docs.src}/velocity.properties">
  34. </anakia>
  35. <copy todir="${docs.dest}/images" filtering="no">
  36. <fileset dir="${docs.src}/images">
  37. <include name="**/*.gif"/>
  38. <include name="**/*.jpeg"/>
  39. <include name="**/*.jpg"/>
  40. </fileset>
  41. </copy>
  42. <!-- In case we have CSS someday
  43. <copy todir="${docs.dest}" filtering="no">
  44. <fileset dir="${docs.src}">
  45. <include name="**/*.css"/>
  46. </fileset>
  47. </copy>
  48. -->
  49. </target>
  50. </project>