Ant 生成javadoc文档

<project name="svnkit_doc" default="jdoc">
	<target name="jdoc" depends="cleanup">
		<!-- useexternalfile:解决命令行太短的问题 cannot run javadoc.exe encoding与charset同时设置成utf-8,解决乱码问题 -->
		<javadoc destdir="./../doc" sourcepath="." useexternalfile="yes" encoding="utf-8" charset="utf-8">
			<fileset dir=".">
				<include name="**/*.java"></include>
			</fileset>
		</javadoc>
	</target>
	
	<target name="cleanup">
		<delete dir="./../doc"></delete>
	</target>
</project>

你可能感兴趣的:(ant javadoc)