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.

docs.xml 2.0 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <project name="build-site" default="docs" basedir=".">
  2. <!-- Initialization properties -->
  3. <property name="project.name" value="ant"/>
  4. <property name="docs.src" location="xdocs"/>
  5. <property name="docs.dest" location="docs"/>
  6. <property name="project.file" value="stylesheets/project.xml" />
  7. <property name="site.dir" location="../jakarta-site2" />
  8. <property name="templ.path" location="xdocs/stylesheets" />
  9. <property name="velocity.props" location="${docs.src}/velocity.properties" />
  10. <path id="anakia.classpath">
  11. <fileset dir="${site.dir}/lib">
  12. <include name="*.jar"/>
  13. </fileset>
  14. </path>
  15. <target name="prepare">
  16. <available classname="org.apache.velocity.anakia.AnakiaTask"
  17. property="AnakiaTask.present">
  18. <classpath refid="anakia.classpath"/>
  19. </available>
  20. </target>
  21. <target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
  22. <echo>
  23. AnakiaTask is not present! Please check to make sure that
  24. velocity.jar is in your classpath.
  25. </echo>
  26. </target>
  27. <target name="docs" depends="prepare-error" if="AnakiaTask.present">
  28. <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask">
  29. <classpath refid="anakia.classpath"/>
  30. </taskdef>
  31. <anakia basedir="${docs.src}" destdir="${docs.dest}/"
  32. extension=".html" style="./site.vsl"
  33. projectFile="${project.file}"
  34. excludes="**/stylesheets/**"
  35. includes="**/*.xml"
  36. lastModifiedCheck="true"
  37. templatePath="${templ.path}"
  38. velocityPropertiesFile="${velocity.props}">
  39. </anakia>
  40. </target>
  41. <target name="javadocs">
  42. <ant antfile="build.xml" target="dist_javadocs">
  43. <property name="dist.javadocs" value="${docs.dest}/manual/api" />
  44. </ant>
  45. </target>
  46. <target name="all" depends="docs, javadocs"/>
  47. </project>