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

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

          Posted on 2009-04-28 06:20 董銳 閱讀(925) 評論(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"/>之前加延時

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


          網站導航:
           
          主站蜘蛛池模板: 襄垣县| 江北区| 合水县| 湟中县| 绩溪县| 山丹县| 峨边| 比如县| 澎湖县| 万州区| 罗源县| 拉孜县| 沂南县| 安平县| 镇原县| 都昌县| 那曲县| 磴口县| 巴东县| 镇沅| 辽宁省| 长宁县| 库尔勒市| 余姚市| 仁布县| 昭苏县| 巴林右旗| 宜章县| 普安县| 辰溪县| 西畴县| 马关县| 紫金县| 蒙城县| 安陆市| 乌拉特中旗| 开封县| 手游| 泸西县| 江山市| 松桃|