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 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <project name="AntManual" default="taskdocs" basedir=".">
  2. <property file="${basedir}/build.properties"/>
  3. <property name="lib.dir" value="${basedir}/lib" />
  4. <property name="build.dir" value="${basedir}/../build" />
  5. <property name="docs.src" value="${basedir}/../../../xdocs" />
  6. <property name="taskdocs.src" value="${build.dir}/gen" />
  7. <!-- The docs destination directory -->
  8. <property name="docs.dest" value="${build.dir}/docs"/>
  9. <property name="manual.dest" value="${docs.dest}/manual" />
  10. <!-- Construct compile classpath -->
  11. <path id="classpath">
  12. <fileset dir="${lib.dir}">
  13. <include name="**/*.jar"/>
  14. </fileset>
  15. </path>
  16. <target name="init">
  17. <taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
  18. <classpath>
  19. <path refid="classpath"/>
  20. </classpath>
  21. </taskdef>
  22. <!-- Make stuff available relative to current location -->
  23. <mkdir dir="${basedir}/xdocs" />
  24. <copy todir="${basedir}/xdocs">
  25. <fileset dir="${docs.src}" includes="stylesheets/project.xml" />
  26. </copy>
  27. </target>
  28. <target name="taskdocs" depends="init"
  29. description="Generate Task Documentation">
  30. <dvsl basedir="${taskdocs.src}" destdir="${manual.dest}"
  31. style="task.dvsl" extension=".html"
  32. includes="**/*.xml">
  33. <velconfig name="velocimacro.library" value="" />
  34. </dvsl>
  35. </target>
  36. </project>