3.普通编译
<target name="build">
<echo message="makeJar: " />
<delete dir="${path}/bin" />
<mkdir dir="${path}/bin" />
<path id=".classpath">
<pathelement location="${devlib.dir}/lib/*.jar" />
</path>
<copy todir="${path}/bin">
<fileset dir="${path}/conf">
<exclude name=".svn" />
<exclude name="vssver2.scc" />
</fileset>
</copy>
<javac srcdir="${path}/src" destdir="${path}/bin" debug="on" debuglevel="source,lines,vars" classpathref=".classpath" executable="C:/Program Files/Java/jdk1.5.0/bin/javac" fork="true" taskname="javac1.5" />
<mkdir dir="${war.dir}/WEB-INF/lib" />
<jar destfile="${war.dir}/xxx.jar" basedir="${path}/bin" />
<copy todir="${dir}">
<fileset dir="${war.dir}/lib">
<include name="xxx.jar" />
</fileset>
</copy>
</target>
<target name="build">
<echo message="makeJar: " />
<delete dir="${path}/bin" />
<mkdir dir="${path}/bin" />
<path id=".classpath">
<pathelement location="${devlib.dir}/lib/*.jar" />
</path>
<copy todir="${path}/bin">
<fileset dir="${path}/conf">
<exclude name=".svn" />
<exclude name="vssver2.scc" />
</fileset>
</copy>
<javac srcdir="${path}/src" destdir="${path}/bin" debug="on" debuglevel="source,lines,vars" classpathref=".classpath" executable="C:/Program Files/Java/jdk1.5.0/bin/javac" fork="true" taskname="javac1.5" />
<mkdir dir="${war.dir}/WEB-INF/lib" />
<jar destfile="${war.dir}/xxx.jar" basedir="${path}/bin" />
<copy todir="${dir}">
<fileset dir="${war.dir}/lib">
<include name="xxx.jar" />
</fileset>
</copy>
</target>