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

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