Let spirit guide you

          thinking in life.

          常用鏈接

          統(tǒng)計(jì)

          API

          Forum

          Site

          WiKi

          最新評(píng)論

          ant creeping

          #---------------
          #ant.bat
          #---------------
          set BUILD_CP=%CLASSPATH%
          set BUILD_CP=%BUILD_CP%;%JAVA_HOME%\lib\tools.jar;
          set BUILD_CP=%BUILD_CP%;..\devlib\ant.jar;
          set BUILD_CP=%BUILD_CP%;..\devlib\ant-junit.jar;
          set BUILD_CP=%BUILD_CP%;..\devlib\ant-launcher.jar;
          set BUILD_CP=%BUILD_CP%;..\devlib\junit.jar;

          %JAVA_HOME%\bin\java -classpath %BUILD_CP% org.apache.tools.ant.Main -buildfile build.xml %1

          #-------------
          #build.xml
          #-------------
            <path id="classpath">
              <pathelement location="${instrumentedclasses}"/>
              <pathelement location="${classes}"/>
              <pathelement location="${testclasses}"/>
              <pathelement location="${src}"/>
              <pathelement location="${test}"/>
              <fileset dir="${lib}" includes="**/*.jar"/>
              <fileset dir="${devlib}" includes="**/*.jar"/>
            </path>
            <target name="compile" depends="prepare">
              <javac srcdir="${src}" destdir="${classes}" deprecation="on" debug="on">
                <classpath refid="classpath"/>
              </javac>
              <javac srcdir="${test}" destdir="${testclasses}" deprecation="on" debug="on">
                <classpath refid="classpath"/>
              </javac>
            </target>
            <target name="war" depends="assemble">
              <jar jarfile="${warfile}">
                <fileset dir="${webapp}">
                  <include name="**/*"/>
                </fileset>
              </jar>
            </target>



          posted on 2008-06-19 00:38 cary 閱讀(243) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): petstore


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 信丰县| 潜山县| 理塘县| 衡东县| 张家口市| 仪征市| 济阳县| 平安县| 宁陕县| 台东县| 耒阳市| 青田县| 安平县| 奎屯市| 黑水县| 安达市| 伊吾县| 休宁县| 富蕴县| 桓台县| 彭阳县| 南平市| 酒泉市| 永嘉县| 玛曲县| 故城县| 博兴县| 雅江县| 吴旗县| 昌吉市| 乐清市| 临沭县| 天柱县| 会东县| 惠州市| 溧水县| 手游| 佛坪县| 连州市| 五指山市| 城口县|