posts - 48, comments - 13, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          Ant的bulid.xml中某個target運行有問題

          Posted on 2009-04-28 06:20 董銳 閱讀(927) 評論(2)  編輯  收藏
              
           <target name="build" description="Compile main source tree java files into class files, generate jar files">
             <javac destdir="${build.dir}"  listfiles="true"
              debug="true" deprecation="false" optimize="false" failonerror="true">
              <src path="${src.dir}"/>
              <classpath refid="master-classpath"/>
             </javac>
           </target>

          最近一個新項目運行這個target總是有問題,在目標路徑?jīng)]有類文件產(chǎn)生。后來發(fā)現(xiàn)每次要將該工程的bulidpath做點小變化,如remove哪個路勁再添加回去,讓工程重新bulid一下,在運行這個target就可以在目標路徑產(chǎn)生類文件了,好奇怪,不知為什么,之前幾個項目都是直接運行target就行了的。注:我用的是Eclipse開發(fā)工具。

          評論

          # 1[未登錄]  回復(fù)  更多評論   

          2011-04-22 14:36 by 1
          1

          # re: Ant的bulid.xml中某個target添加延時  回復(fù)  更多評論   

          2013-07-31 17:52 by 秦勇
          <target name="rentest" description="running testCase!">
          <echo message="running testCase begin!"/>
          <java fork="false" classname="org.testing.TestNG">
          <sysproperty key="net.sourceforge.cobertura.datafile" file="${cobertura.datafile}"/>
          <classpath location="${root.build.inject}"/>
          <arg value="${testing.file}"/>
          </java>
          <antcall target="collect"/>
          <echo message="running testCase end!"/>
          </target>

          在調(diào)用<antcall target="collect"/>之前加延時

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 固镇县| 宣化县| 固安县| 莆田市| 玉田县| 苍山县| 东乡| 闽侯县| 内黄县| 廉江市| 武宣县| 玉树县| 凤山市| 宁夏| 土默特左旗| 桑日县| 裕民县| 延边| 靖西县| 赣州市| 包头市| 江安县| 蒙阴县| 游戏| 驻马店市| 兴安盟| 岳阳县| 汽车| 德钦县| 阳高县| 汝州市| 德令哈市| 进贤县| 梧州市| 宁强县| 天祝| 吐鲁番市| 罗城| 娄烦县| 清徐县| 崇礼县|