당신이 릴리스 및 디버그가 대상 찾을 수 build.xml
프로젝트를 열면. 이름이 인 베타과 비슷한 이름으로 새 매개 변수를 만들고 거기에 특정 매개 변수를 설정해야합니다.
<project name="j2me_library" default="build" basedir=".">
<property name="build.version" value="1.0.0" />
<property name="build.name" value="library-${build.version}" />
<property name="src" value="src" />
<property name="lib" value="lib" />
<property name="build" value="build" />
<property name="classes" value="${build}/classes" />
<property name="dist" value="${build}/dist" />
<!--
the "build" target is the default entry point of this script
-->
<target name="build" depends="package" />
<!--
the "clean" target will delete the build directory which contains lots of mess from the previous build
-->
<target name="clean">
<delete dir="${build}" />
</target>
<target name="prepare" depends="clean">
<mkdir dir="${classes}"/>
<mkdir dir="${dist}"/>
</target>
<!--
the "compile" target generates the .class files from the .java sources
-->
<target name="compile" depends="prepare">
<path id="lib.files">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<property name="lib.classpath" refid="lib.files" />
<javac srcdir="${src};"
destdir="${classes}"
includeantruntime="false"
classpath="${lib.classpath}"
bootclasspath="${lib.classpath}"
target="1.1"
source="1.2"
/>
</target>
<!--
the "package" target creates the jar file
-->
<target name="package" depends="compile">
<jar destfile="${dist}/${build.name}.jar" basedir="${classes}"/>
</target>
</project>
: 여기
간단한 Ant 빌드 프로세스의 예이다 광산