锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品视频一区二区三区,尤物yw午夜国产精品视频明星,欧美5-7sexvideos处http://www.aygfsteel.com/cerulean/category/19906.htmlzh-cnTue, 14 Aug 2007 10:36:15 GMTTue, 14 Aug 2007 10:36:15 GMT60eclipse涓殑anthttp://www.aygfsteel.com/cerulean/archive/2007/08/14/136689.htmlceruleanceruleanTue, 14 Aug 2007 07:18:00 GMThttp://www.aygfsteel.com/cerulean/archive/2007/08/14/136689.htmlhttp://www.aygfsteel.com/cerulean/comments/136689.htmlhttp://www.aygfsteel.com/cerulean/archive/2007/08/14/136689.html#Feedback0http://www.aygfsteel.com/cerulean/comments/commentRss/136689.htmlhttp://www.aygfsteel.com/cerulean/services/trackbacks/136689.html鍦╡clipse涓凡緇忛泦鎴愪簡ant錛屽鏋滃垱寤哄悕涓篵uild.xml鐨勬枃浠訛紝灝變細琚瘑鍒負ant鐨勬枃浠躲係howView->Outline浼氭湁涓浜涙彁紺恒?br>鍦╡clipse涓?鍙抽敭build.xml,
閫夋嫨:Run As Ant Build,浼氭墽琛岄粯璁ょ殑浠誨姟
閫夋嫨:Run As Ant Build...,鍦ㄥ脊鍑烘涓?鍙互閫夋嫨鎵ц鍝簺浠誨姟.

褰撶洿鎺ヤ嬌鐢╝nt鍛戒護鏃訛紝鍙互鐢?D鏉ヨ緭鍏ュ弬鏁幫紝
渚嬪ant -buildfile package.xml -Dversion=1_0錛屾寚瀹氫簡version鐨勫箋?br>

cerulean 2007-08-14 15:18 鍙戣〃璇勮
]]>
浣跨敤anthttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98864.htmlceruleanceruleanThu, 08 Feb 2007 13:18:00 GMThttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98864.htmlhttp://www.aygfsteel.com/cerulean/comments/98864.htmlhttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98864.html#Feedback1http://www.aygfsteel.com/cerulean/comments/commentRss/98864.htmlhttp://www.aygfsteel.com/cerulean/services/trackbacks/98864.html浣跨敤ant:
1. eclipse 3.x 鐗堟湰閮介泦鎴愪簡ant.鍙互鐩存帴鐢?浣嗘槸鑴辯浜唀clipse灝辨病娉曠敤浜?
2. 鍦ㄦ満鍣ㄤ笂瀹夎ant:浠巃nt.apache.org涓婁笅杞?瑙e帇鍒癉OWNLOAD_ANT_HOME
聽聽聽 閰嶇疆鐜鍙橀噺:ANT_HOME= DOWNLOAD_ANT_HOME
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 PATH= %PATH%;%ANT_HOME%\bin
聽聽聽 windows涓嬮渶瑕侀噸鍚満鍣ㄦ墠鑳界敓鏁?
聽聽聽 娉ㄦ剰:榪橀渶瑕佹妸junit.jar鍖?鎵嬪伐鎷瘋礉鍒癆NT_HOME\lib涓嬮潰鎵嶅彲浠ヨant姝g‘鎵цjunit嫻嬭瘯.(鎴栬呮妸junit.jar鍖呬篃鏀捐繘宸ョ▼鐨刲ib閲岄潰浣滀負classpath)
聽聽聽聽聽聽聽聽聽聽聽聽 鍚﹀垯浼氬鑷碆UILD FAILED: The classpath for junit must include junit.jar if not in Ant's own classpath.
聽聽聽 鍛戒護琛屾柟寮忚繘鍏ュ伐紼嬫墍鍦ㄧ洰褰?鏁插叆ant,鍒欒嚜鍔ㄦ壘瀵昏鐩綍涓媌uild.xml鐨勬瀯寤烘枃浠?騫舵墽琛屾瀯寤?/p>

閿欒鎬繪槸闃蹭笉鑳滈槻錛屽眰鍑轟笉絀鳳細
聽聽聽 鏈潵ant鍦╡clipse閲岄潰閮借瘯閫氫簡錛岃寰楀畨瑁呬釜鐙珛鐨刟nt錛屽湪鍛戒護琛屼笅鎵ц涔熸病鍟ラ棶棰橈紝鍙槸閰嶇疆涔嬪悗錛屽湪eclipse涓嬮潰鎴愬姛鐨勭珶鐒舵姏鍑篹xception:Unsupported major.minor version 49.0銆備笂緗戞煡浜嗕竴涓嬶紝搴旇鏄紪璇戞簮浠g爜鍜屾墽琛屾簮浠g爜涓嶆槸鍚屼竴涓増鏈殑jdk鑰屽紩璧風殑銆傚洜姝わ紝淇敼浜哹uild.xml錛屽姞鍏ヤ簡clean鐨勬墦鎵紪璇戝悗鐨刢lass鏂囦歡鐨則arget銆傚啀嬈nt鏃訛紝絳変簬鏄噸鏂扮紪璇戯紝閲嶆柊鎵цjunit test case錛屽氨閫氳繃浜嗐?/p>

cerulean 2007-02-08 21:18 鍙戣〃璇勮
]]>
鍦╡clipse涓嬌鐢ˋnt鎵цJUnithttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98863.htmlceruleanceruleanThu, 08 Feb 2007 13:17:00 GMThttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98863.htmlhttp://www.aygfsteel.com/cerulean/comments/98863.htmlhttp://www.aygfsteel.com/cerulean/archive/2007/02/08/98863.html#Feedback0http://www.aygfsteel.com/cerulean/comments/commentRss/98863.htmlhttp://www.aygfsteel.com/cerulean/services/trackbacks/98863.html 寤虹珛宸ョ▼:
鍦╡clipse涓緩绔嬩竴涓猨ava project.
AntTest
聽-src
聽聽-com.test
聽聽聽-ABS.java
聽聽聽-ABSTest.java (Junit Test Case)
聽-lib
聽-build.xml
聽-JUNIT_HOME/junit.jar

閰嶇疆:
eclipse->window->preference->ANT->Runtime->Classpath->ANT Home Entry
閫夋嫨Add External JAR錛屽姞鍏CLIPSE_HOME/plugins/org.junit.../junit.jar

build.xml鐨勫唴瀹?

聽1
聽2 <? xml聽version="1.0" ?>
聽3 < project聽 name ="project" 聽default ="junit" >
聽4 < property聽 name ="run.classpath" 聽value ="bin" ></ property >
聽5 < property聽 name ="run.srcpath" 聽value ="src" ></ property >
聽6 < property聽 name ="test.srcpath" 聽value ="src" ></ property >
聽7 < property聽 name ="test.report" 聽value ="report" ></ property >
聽8 < property聽 name ="lib.dir" 聽value ="lib" />
聽9 < path聽 id ="compile.path" >
10 聽聽 < fileset聽 dir ="${lib.dir}" >
11 聽聽聽 < include聽 name ="**/*.jar" />
12 聽聽 </ fileset >
13 </ path >
14 < target聽 name ="compile" >
15 聽聽 < javac聽 destdir ="${run.classpath}" 聽srcdir ="${run.srcpath}" 聽classpathref ="compile.path" />
16 聽聽 < javac聽 destdir ="${run.classpath}" 聽srcdir ="${test.srcpath}" 聽classpathref ="compile.path" />
17 </ target >
18 < target聽 name ="junit" 聽depends ="compile" >
19 聽聽 < tstamp聽 />
20 聽聽 < mkdir聽 dir ="${test.report}" />
21 聽聽 < mkdir聽 dir ="${test.report}/framework-${DSTAMP}-${TSTAMP}" />
22 聽聽 < junit聽 printsummary ="true" >
23 聽聽聽 < classpath >
24 聽聽聽聽 < pathelement聽 path ="${run.classpath}" />
25 聽聽聽聽 < fileset聽 dir ="${lib.dir}" >
26 聽聽聽聽聽 < include聽 name ="**/*.jar" />
27 聽聽聽聽 </ fileset >
28 聽聽聽 </ classpath >
29 聽聽聽 < formatter聽 type ="plain" />
30 聽聽聽 < batchtest聽 fork ="yes" 聽todir ="${test.report}/framework-${DSTAMP}-${TSTAMP}" >
31 聽聽聽聽 < fileset聽 dir ="${test.srcpath}" >
32 聽聽聽聽聽 < include聽 name ="**/*Test.java" />
33 聽聽聽聽 </ fileset >
34 聽聽聽 </ batchtest >
35 聽聽 </ junit >
36 </ target >
37
38 </ project >
39
40



榪愯:
鍙抽敭build.xml->run as "Ant Build".

緇撴灉:
鎺у埗鍙版湁杈撳嚭緇撴灉,渚嬪:
Buildfile: C:\Documents and Settings\qianwang\My Documents\D\SMPWorkspace\AntTest\build.xml
compile:
junit:
聽聽聽 [mkdir] Created dir: C:\Documents and Settings\qianwang\My Documents\D\SMPWorkspace\AntTest\report\framework-20070201-1712
聽聽聽 [junit] Running com.test.ABSTest
聽聽聽 [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0 sec
BUILD SUCCESSFUL
Total time: 19 seconds

鍚屾椂,AntTest/report(濡傛灉娌℃湁鑷姩寤虹珛鐨勭洰褰?涓?浜х敓.txt鏍煎紡鐨勬枃鏈枃浠?
緇撴灉鏂囦歡涓?浼氭寚鍑鴻繍琛屼簡鍝簺testcase(鎸囧嚭琚祴璇曠殑鏂規硶鍚峵est**).
濡傛灉鏈塮ailures/errors,寮傚父鐨勮緇嗕俊鎭篃浼氳緭鍑哄湪榪欓噷.



cerulean 2007-02-08 21:17 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 垣曲县| 彭水| 揭西县| 南皮县| 林西县| 从江县| 民勤县| 泗水县| 罗甸县| 普洱| 托克托县| 沅江市| 广安市| 临汾市| 达尔| 广西| 青海省| 洞头县| 五台县| 汉沽区| 巴马| 乌鲁木齐县| 吐鲁番市| 彭州市| 墨玉县| 佛坪县| 荣成市| 静海县| 修水县| 文安县| 宜阳县| 屏边| 永丰县| 南川市| 和静县| 永康市| 姚安县| 镇沅| 铜山县| 巢湖市| 江津市|