<?xml version="1.0" encoding="UTF-8"?>
<project name="TestJavaDoc" default="run" basedir=".">
<property name="TOMCAT_HOME" value="E:/work/my-project-apache-tomcat-6.0.18" />
<property name="JAVA_HOME" value="E:/work/java/jdk1.5" />
<property name="PROJECT_HOME" value="E:/myworkspace/AntSql" />
<property name="SRC" location="${PROJECT_HOME}/src" />
<!-- 依赖的其他jar包 -->
<property name="DEPENDS" value="${PROJECT_HOME}/depends" />
<!-- Jdoc的目录 -->
<property name="jdoc" value="${PROJECT_HOME}/build/jdoc" />
<property name="JDK_VERSION" value="1.5" />
<!--编译需要依赖的 CLASSPATH -->
<path id="CLASSPATH">
<fileset dir="${TOMCAT_HOME}/lib" casesensitive="no">
<include name="*.jar" />
</fileset>
<fileset dir="${DEPENDS}" casesensitive="no">
<include name="*.jar" />
</fileset>
<pathelement location="${JAVA_HOME}/lib/rt.jar" />
</path>
<!--初始化工作,主要是建一些文件夹 -->
<target name="init">
<mkdir dir="${jdoc}" />
</target>
<!-- JavaDoc 生成API文档 -->
<target name="javaDocs">
<javadoc sourcepath="${SRC}" classpathref="CLASSPATH" destdir="${jdoc}"
encoding="utf-8" charset="utf-8" docencoding="utf-8" author="true" version="true"
use="true" splitindex="true" windowtitle="AntSql API" doctitle="AntSql Doc"/>
</target>
<!-- 运行-->
<target name="run" depends="javaDocs">
</target>
</project>
ant 学习之 jdoc
最新推荐文章于 2021-02-07 09:25:41 发布