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"/>之前加延時

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


          網站導航:
           
          主站蜘蛛池模板: 鹿泉市| 临清市| 老河口市| 南平市| 永靖县| 永昌县| 尼玛县| 无棣县| 灵璧县| 尖扎县| 华容县| 晋城| 宁明县| 成安县| 乌兰浩特市| 高州市| 高雄县| 依兰县| 旺苍县| 忻州市| 中方县| 楚雄市| 霍城县| 碌曲县| 古交市| 尚志市| 利辛县| 大丰市| 汕尾市| 璧山县| 宁明县| 冷水江市| 英德市| 襄樊市| 永春县| 和龙市| 安龙县| 高要市| 财经| 隆安县| 南宫市|