日期:2014-05-20 浏览次数:20843 次
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="package">
<property name="compile" value="compile"></property>
<property name="package" value="tetris"></property>
<target name="preprocess">
<mkdir dir="${compile}"/>
<mkdir dir="${package}"/>
</target>
<target name="compile" depends="preprocess">
</target>
<target name="package" depends="compile">
</target>
<target name="myCompile" depends="preprocess">
<!-- 我就中在下在面指定的编码为encoding="utf-8" -->
<javac encoding="utf-8" srcdir="src" destdir="${compile}"></javac>
</target>
<target name="myPackage" depends="myCompile">
<jar destfile="${package}/tetris.jar" basedir="${compile}">
<manifest>
<attribute name="Build-By" value="${user.name}"/>
<attribute name="Main-Class" value="w.j.block.Tetris"/>
</manifest>
</jar>
</target>
</project>