首页 > 代码库 > ant学习之java命令

ant学习之java命令

<?xml version="1.0" ?><project name="antCopy" default="run" basedir="../">    <target name="clean">        <delete dir="${basedir}/build" />    </target>    <target name="compile" depends="clean">        <mkdir dir="${basedir}/build/classes" />        <javac srcdir="${basedir}/AntMain" destdir="${basedir}/build/classes" includeantruntime="false"/>    </target>    <target name="run" depends="compile">        <java classname="com.xisong.ant.HelloAnt">            <classpath>                <pathelement path="${basedir}/build/classes/" />            </classpath>        </java>    </target></project>

 

ant学习之java命令