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

          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總是有問題,在目標路徑沒有類文件產生。后來發現每次要將該工程的bulidpath做點小變化,如remove哪個路勁再添加回去,讓工程重新bulid一下,在運行這個target就可以在目標路徑產生類文件了,好奇怪,不知為什么,之前幾個項目都是直接運行target就行了的。注:我用的是Eclipse開發工具。

          評論

          # 1[未登錄]  回復  更多評論   

          2011-04-22 14:36 by 1
          1

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

          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>

          在調用<antcall target="collect"/>之前加延時

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


          網站導航:
           
          主站蜘蛛池模板: 皮山县| 青海省| 南陵县| 阳曲县| 福建省| 太湖县| 明光市| 绥江县| 溧水县| 建水县| 囊谦县| 巧家县| 乌苏市| 海兴县| 宝山区| 界首市| 阳新县| 上饶县| 双辽市| 邹平县| 宁津县| 荥阳市| 开原市| 伊金霍洛旗| 祁阳县| 胶南市| 宝山区| 马关县| 崇明县| 南川市| 罗源县| 镇雄县| 丹东市| 息烽县| 营口市| 泰州市| 资兴市| 兴隆县| 凌源市| 金湖县| 珲春市|