锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久久一区国产精品,久久精品国产清自在天天线,丰满少妇人妻久久久久久4http://www.shnenglu.com/keigoliye/category/13472.html涓鍒囬兘鏄焊鑰佽檸zh-cnMon, 12 Apr 2010 16:16:39 GMTMon, 12 Apr 2010 16:16:39 GMT60浣跨敤Flex Ant Tasks緙栬瘧宸ョ▼鏂囦歡http://www.shnenglu.com/keigoliye/archive/2010/04/12/112325.html鏆楀鏁欑埗鏆楀鏁欑埗Mon, 12 Apr 2010 07:08:00 GMThttp://www.shnenglu.com/keigoliye/archive/2010/04/12/112325.htmlhttp://www.shnenglu.com/keigoliye/comments/112325.htmlhttp://www.shnenglu.com/keigoliye/archive/2010/04/12/112325.html#Feedback0http://www.shnenglu.com/keigoliye/comments/commentRss/112325.htmlhttp://www.shnenglu.com/keigoliye/services/trackbacks/112325.html闃呰鍏ㄦ枃

鏆楀鏁欑埗 2010-04-12 15:08 鍙戣〃璇勮
]]>
涓緇熷ぉ涓嬶紝浣跨敤ANT鏋勫緩VS.NET宸ョ▼http://www.shnenglu.com/keigoliye/archive/2010/04/09/112079.html鏆楀鏁欑埗鏆楀鏁欑埗Fri, 09 Apr 2010 08:39:00 GMThttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112079.htmlhttp://www.shnenglu.com/keigoliye/comments/112079.htmlhttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112079.html#Feedback0http://www.shnenglu.com/keigoliye/comments/commentRss/112079.htmlhttp://www.shnenglu.com/keigoliye/services/trackbacks/112079.html
瀵筕S.NET宸ョ▼榪涜鑷姩鏋勫緩宸ヤ綔浣跨敤浠涔堬紵涔熻澶у浼?xì)寮傚彛鍚屽0鐨勮鏄疦ANT銆傚棷錛孨ANT鏃犵枒鏄嚜鍔ㄦ瀯寤篤S.NET宸ョ▼鏈蹇嵎鐨勫伐鍏鳳紝浣嗗浜庝竴涓嫢鏈夊涓紪紼嬭璦鐜鐨勯」鐩紝浣跨敤涓撶敤鐗堢殑ANT宸ュ叿鍗村茍涓嶆槸涓涓ソ鐨勮В鍐蟲柟妗堬紝璇曟兂錛屽鏋滀綘鐨勯」鐩嫢鏈夊涓敱涓嶅悓璇█寮鍙戠殑妯″潡錛岄偅涔堜綘鍙兘浼?xì)鍚屾椂鋴社敤ANT銆乄ANT銆丯ANT鏉ュ垎鍒鐞嗙壒瀹氱殑妯″潡銆?/div>
褰撶劧錛岃繖涓嶆槸鎴戜滑鎯崇湅鍒扮殑錛屽悓鏃剁淮鎶や笁涓瀯寤哄伐鍏峰疄鍦ㄤ笉鏄粈涔堟槑鏅轟箣涓撅紙褰撶劧錛屽鏋滀綘鍠滄錛岄偅灝辨棤鍙帤闈炰簡錛夛紝鍏跺疄ANT宸茬粡涓烘垜浠氬悆鎵鏈夎璦鐜鍑嗗濂戒簡綺懼叺鑹┕銆?/div>
ANT鐨別xec鏍囩鏄敤鏉ユ墽琛屼竴涓郴緇熷懡浠わ紝榪欐牱鎴戜滑灝卞彲浠ヤ嬌鐢ㄥ紑鍙戝伐鍏風(fēng)殑鍛戒護(hù)琛岀紪璇戞柟娉曟潵瀹屾垚鐩稿簲欏圭洰鐨勮嚜鍔ㄦ瀯寤哄伐浣溿備笅闈㈡垜浠彧浠嬬粛VS.NET宸ョ▼鐨勫懡浠よ緙栬瘧鏂規(guī)硶錛?/div>
VS.NET寮鍙戝伐鍏風(fēng)殑鍛戒護(hù)琛岀紪璇戝懡浠ゆ槸devenv錛屽綋鐒跺墠鎻愭槸灝哣S.NET鐨処DE鐩綍璺緞鏀劇疆鍒癙ATH鍙橀噺涓傝緗ソPATH鍙橀噺錛屽湪鎺у埗鍙頒腑閿叆devenv /?錛屾垜浠彲浠ョ湅鍒癡S.NET鐨勫悇涓弬鏁拌鏄庯紝濡備笅錛?/div>

Microsoft (R) 寮鍙戠幆澧?/span> 7.10.3077 鐗堛?/span>
鐗堟潈鎵鏈?/span>(C) Microsoft Corp 1984-2001銆備繚鐣欐墍鏈夋潈鍒┿?/span>
 
鐢ㄦ硶:
devenv [solutionfile | projectfile | anyfile.ext] [switches]
 
鍙互璋冪敤 devenv錛岀敤絎竴涓弬鏁版寚瀹氳В鍐蟲柟妗堟枃浠舵垨欏圭洰鏂囦歡銆?/span>
涔熷彲浠ヨ皟鐢?/span> devenv錛屼嬌絎竴涓弬鏁頒綔涓鴻鍦ㄧ紪杈戝櫒涓墦寮鐨勪換浣?/span>
鍏朵粬綾誨瀷鐨勬枃浠躲傚鏋滄彁渚涢」鐩枃浠訛紝IDE 灝嗛氳繃鍦ㄤ笌欏圭洰鏂囦歡
鐩稿悓鐨勭洰褰曚腑鏌ユ壘涓庨」鐩枃浠跺叿鏈夌浉鍚屽熀鍚嶇О鐨?/span> .sln 鏂囦歡錛屽湪
瑙e喅鏂規(guī)鐨勪笂涓嬫枃涓墦寮璇ラ」鐩枃浠躲傚鏋滃瓨鍦?/span> .sln 鏂囦歡錛屽垯
IDE 灝嗘煡鎵懼紩鐢ㄨ欏圭洰鐨勫崟涓?/span> .sln 鏂囦歡銆傚鏋滀笉瀛樺湪榪欐牱鐨勫崟
涓?/span> .sln 鏂囦歡錛屽垯 IDE 灝嗗垱寤轟竴涓叿鏈夐粯璁?/span> .sln 鏂囦歡鍚嶇殑鏈繚
瀛樼殑瑙e喅鏂規(guī)錛岃岃榛樿鏂囦歡鍚嶄笌欏圭洰鏂囦歡鍏鋒湁鐩稿悓鐨勫熀鍚嶇О銆?/span>
 
鍛戒護(hù)琛岀敓鎴?/span>:
devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /p
rojectconfig name ] ]
 
鍙敤鐨勫懡浠よ寮鍏?/span>:
 
/build          鐢熸垚鎸囧畾鐨勮В鍐蟲柟妗堥厤緗?/span>
/project        鎸囧畾鐢熸垚欏圭洰鑰屼笉鏄В鍐蟲柟妗?/span>
                蹇呴』鎸囧畾 /build 鎵嶈兘浣跨敤 /project
/projectconfig 鎸囧畾瑕佺敓鎴愮殑欏圭洰閰嶇疆
                蹇呴』鎸囧畾 /project 鎵嶈兘浣跨敤 /projectconfig
/out            灝嗙敓鎴愮粨鏋滃啓鍏ユ寚瀹氱殑鏂囦歡
/rebuild        涓?/span> /build 綾諱技錛屼絾鍏堟墽琛屽己鍒舵竻鐞?/span>
/clean          娓呯悊鐢熸垚緇撴灉
/deploy         鐢熸垚鎸囧畾鐨勮В鍐蟲柟妗堥厤緗劧鍚庨儴緗插畠
/run            榪愯鎸囧畾鐨勮В鍐蟲柟妗堥厤緗?/span>
/runexit        榪愯鎸囧畾鐨勮В鍐蟲柟妗堥厤緗劧鍚庣粓姝?/span>
/command        鍚姩鍚庢墽琛屾寚瀹氱殑鍐呴儴鍛戒護(hù)琛?/span>
/mditabs        浣跨敤閫夐」鍗″紡鏂囨。鐣岄潰
/mdi            浣跨敤 MDI 鐣岄潰
/fn             浣跨敤鎸囧畾鐨勫瓧浣撳悕縐?/span>
/fs             浣跨敤鎸囧畾鐨勫瓧浣撳ぇ灝?/span>
/LCID           浣跨敤鎸囧畾鐨勮璦 ID
/noVSIP         紱佺敤鐢ㄤ簬 VSIP 嫻嬭瘯鐨?/span>VSIP 寮鍙戜漢鍛樿鍙瘉瀵嗛挜
/safemode       鍑轟簬紼沖畾鎬т粎鍔犺澆榛樿鐨勭幆澧冨拰鏈嶅姟
/resetskippkgs 鍏佽鏇捐鏍囪涓哄姞杞藉け璐ョ殑 VsPackages
                鍐嶆鍔犺澆
/migratesettings 榪佺Щ鍙︿竴涓増鏈腑鐨勬煇浜涚敤鎴瘋緗?/span>
 
浜у搧鐗瑰畾鐨勫紑鍏?/span>:
 
/debugexe       鎵撳紑瑕佽皟璇曠殑鎸囧畾鍙墽琛屾枃浠躲?/span>
                鍛戒護(hù)琛岀殑鍏朵綑閮ㄥ垎浣滀負(fù)瀹冪殑鍙傛暟
                浼犻掑埌姝ゆ墽琛屾枃浠躲?/span>
/useenv         浣跨敤 PATH銆?/span>INCLUDE銆?/span>LIBPATH 鍜?/span> LIB 鐜鍙橀噺
                鑰屼笉鏄嬌鐢?/span> VC++ 鐢熸垚鐨?/span> IDE 璺緞銆?/span>
 
鑻ヨ浠庡懡浠よ闄勫姞璋冭瘯鍣紝璇蜂嬌鐢?/span>:
        vs7jit.exe -p <pid>

鍙VS.NET宸ュ叿涓烘垜浠彁渚涗簡璇稿鏀寔鍛戒護(hù)琛岀紪璇戠殑鍙傛暟錛岄偅鎺ヤ笅鏉ユ垜浠氨寮濮嬪姩鎵嬮厤緗瓸uild.xml鏂囦歡鍚э紝涓轟簡鑺傜渷綃囧箙錛屾垜榪欓噷鍙粰鍑篶ompile浠誨姟鐨勪唬鐮侊細(xì)

1    <target name="compile" depends="init">
2        <mkdir dir="${pdcu}"/>
3        <echo message="Compiling application main source..."/>
4                 <delete file="${infofile}"/>        
5        <exec dir="${pdir}\" executable="devenv" os="${build.os}" >
6             <arg line=" ${pname}.sln
7                                   /rebuild
8                                   release     
9                                   /useenv
10                                 /out ${infofile}
11                                 "/>
12       </exec>
13     <echo message="Compiling application main source complete."/>
14 <loadfile property="compiled-info"
15            srcFile="${infofile}"/>
16        <echo message="${compiled-info}"/>       
17 <condition property="compile-success">
18      <and>
19       <contains string="${compiled-info}" substring="0 宸插け璐?/span>"/>
20      </and>
21    </condition>
22 <fail unless="compile-success"
23        message="${compiled-info}"/>
24    </target>

鎴戜滑鏉ヨ緇嗗垎鏋愪竴涓嬩笂闈㈢殑浠g爜銆?/div>
絎?琛屾槸浠誨姟瀹氫箟錛屽湪姝や笉榪囧瑙i噴銆?/div>
2錛?琛屾槸浠誨姟瀹氫箟鍜屽噯澶囧伐浣滐紝涓昏鏄緩绔嬬紪璇戠敓鎴愮洰褰曞拰娓呯悊鏃х殑杈撳嚭鏂囦歡銆?/div>
5錛?2琛屼究鏄懡浠よ緙栬瘧鐨勪富瑕佷唬鐮侊紝鎴戜滑鏉ラ愪釜瑙i噴銆?/div>
絎?琛屽畾涔変簡涓涓猠xec鏍囩錛岀敤鏉ヨ皟鐢╠evenv鍛戒護(hù)錛屽茍鎸囧畾浜嗙紪璇戞墍鍦ㄥ綋鍓嶇洰褰昫ir灞炴э紝鍜屾搷浣滅郴緇熶俊鎭痮s灞炴с?/div>
浠庣6琛屽紑濮嬪垯涓篸evenv鍛戒護(hù)鐨勫弬鏁伴儴鍒嗐?/div>
鍏朵腑絎?琛屾寚瀹氫簡瑕佺紪璇戠殑瑙e喅鏂規(guī)銆?/div>
絎?琛屾爣鏄庤瑙e喅鏂規(guī)瑕佽繘琛岄噸鏂扮紪璇戙?/div>
絎?琛屾寚瀹氫簡緙栬瘧綾誨瀷涓簉elease妯″紡銆?/div>
絎?琛屾寚瀹氱紪璇戝櫒浣跨敤 PATH銆両NCLUDE銆丩IBPATH 鍜?LIB 鐜鍙橀噺銆?/div>
絎?0琛屾寚瀹氫簡緙栬瘧淇℃伅杈撳嚭鐨勬枃浠朵綅緗傜敱浜巇evenv鍛戒護(hù)鎵ц瀹屾瘯鍚庯紝ANT鏃犳硶浠庡懡浠よ鑾峰彇緙栬瘧淇℃伅錛屾墍浠ヤ笉鑳戒嬌鐢╡xec鐨刼utput灞炴ф潵鎸囧畾杈撳嚭浣嶇疆錛堝湪璋冪敤Delphi緙栬瘧鍣ㄧ殑鏃跺欙紝ANT鍙互姝e父鑾峰彇緙栬瘧淇℃伅錛屽洜姝utput灞炴ф湁鏁堬級錛屽彧鑳戒嬌鐢ㄧ紪璇戝櫒鎵鍏鋒湁鐨勫弬鏁板姛鑳藉皢淇℃伅杈撳嚭錛岃淇℃伅涓哄垽鏂紪璇戞垚鍔熶笌鍚︾殑鍏抽敭銆?/div>
14錛?5琛岃鍙栦簡涓婅堪鐨勭紪璇戜俊鎭枃浠剁殑鍐呭錛屼互渚夸箣鍚庡垽鏂紪璇戞槸鍚︽垚鍔熴?/div>
17錛?1琛屽垯瀹氫箟浜嗕竴涓紪璇戠粨鏋滐紝鐢ㄤ簬鍒ゆ柇緙栬瘧鏄惁鎴愬姛銆傜粨鏋滀嬌鐢ㄤ簡contains灞炴ф潵鍒ゆ柇錛屽鏋滆緭鍑烘枃浠朵腑鍖呭惈瀛楃涓?#8220;0 宸插け璐?#8221;錛屽垯璇存槑緙栬瘧鎴愬姛瀹屾垚銆?/div>
22錛?3琛屽垯鏄寚紺轟簡ANT錛屼竴鏃︾紪璇戝け璐ワ紝鍒欐墦鍗板嚭緙栬瘧淇℃伅銆?/div>
褰撶劧錛岃繖閲屽彧浠嬬粛浜嗙紪璇慥S.NET宸ョ▼鐨勫叾涓竴縐嶆柟娉曪紝鍦ㄦ鎶涚爾寮曠帀銆傛棦鐒禔NT涓烘垜浠彁渚涗簡濡傛寮哄ぇ鐨勭郴緇熷懡浠ゆ墽琛屽姛鑳斤紝閭d箞鎴戜滑渚垮彲浠ュ湪鍚勭緙栫▼璇█鐜涓父鍒冩湁浣欎簡銆?/div>

]]>浣跨敤Ant榪涜ssh鍜宻cp鎿嶄綔http://www.shnenglu.com/keigoliye/archive/2010/04/09/112076.html鏆楀鏁欑埗鏆楀鏁欑埗Fri, 09 Apr 2010 08:29:00 GMThttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112076.htmlhttp://www.shnenglu.com/keigoliye/comments/112076.htmlhttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112076.html#Feedback0http://www.shnenglu.com/keigoliye/comments/commentRss/112076.htmlhttp://www.shnenglu.com/keigoliye/services/trackbacks/112076.html

涓銆佺畝浠嬶細(xì)
銆銆鐜板湪鎴戜滑瀹夎Linux鐨勬椂鍊欓氬父鑰冭檻鍒板畨鍏ㄥ洜绱狅紙榛樿鎯呭喌涓嬶級鏄笉鎵撳紑telnet鏈嶅姟鐨勶紝鑰宻sh鏈嶅姟鏄湁鐨勶紝ant寰堟棭灝辨敮鎸乼elnet錛屼絾瑕佹眰鎴戜滑鍦↙inux涓嬭瀹夎telnet-server,騫惰鍚敤璇ユ湇鍔°?/p>

榪樺ソ鑷狝nt1.60寮濮嬫敮鎸佷簡SSH 鍙?qiáng)SCP 鎿嶄綔浜嗭紝鏃╁湪Ant涔嬪墠鑻ヨ鏀寔SSH銆丼CP銆丼FTP絳変換鍔″氨蹇呴』涓嬭澆j2ssh鐨刯2ssh-ant.jar鍜宩2ssh-core.jar錛堝湪http://www.sourceforge.net鐨刯2ssh涓嬫湁涓嬭澆錛夈傜幇鍦ㄥ彲浠ヤ嬌鐢ˋnt鎻愪緵鐨凷shexec鍜宻cp浠誨姟錛岀敱$ANT_HOME/lib/ant-jsch.jar鎻愪緵鏀寔錛屼絾鏄悓鏍蜂綘涔熻鍦?a style="text-decoration: underline; color: rgb(0, 68, 182); ">http://www.jcraft.com/jsch/index.html涓嬭澆涓涓緷璧栧寘jsch-0.1.24.jar(鏂囦歡鍚嶅洜鐗堟湰鑰屼笉鍚?錛宩sch鍚屾牱涔熸槸http://www.sourceforge.net涓嬬殑涓涓」鐩?/p>

浣犻渶瑕佹妸涓嬭澆鐨刯sch-0.1.24鎷瘋礉鍒?ANT_HOME/lib涓嬶紝濡傛灉鏄疎clipse涓嬬殑Ant鐜蹇呴』鍦╓indow->Preferences->Ant->Runtime->Classpath涓姞鍏sch-0.1.24銆?/p>

JSch鏄竴涓猄SH2鐨勭函Java瀹炵幇
JSch鍏佽浣犺繛鎺ュ埌sshd server騫墮噰鐢ㄧ鍙f槧灝勶紝 X11 鏄犲皠; Scp鏂囦歡浼犺緭絳夛紝浣犲彲浠ユ妸闆嗘垚JSch鎻愪緵鐨勫姛鑳藉埌浣犺嚜宸辯殑Java欏圭洰涓紝JSch 鐨勬巿鏉冩柟寮忎負(fù) BSD褰㈠紡銆?/p>

浜屻佺畝鍗曚緥瀛愶細(xì)
銆銆涓嬮潰鏄敤JSch瀹屾垚Sshexec鍜宻cp涓や釜浠誨姟鐨勬渶綆鍗曚緥瀛愶紝濡傛灉闇瑕佹洿璇︾粏鐨勫唴瀹癸紝璇峰弬鑰傾nt鐢ㄦ埛鎵嬪唽

[Sshexec浠誨姟]
<BR><target name="sshexec">
      <sshexec host="192.168.122.180" username="root"  password="123456"
         trust="true" command="cd /;ls"/>
</target>

娉ㄦ剰涓婇潰鐨則rust灞炴т竴鑸緗負(fù)true,銆濡傛灉涓洪粯璁ゅ糵alse鏃?閭d箞灝辮姹備綘鎵榪炴帴鐨刪ost蹇呴』瀛樺湪浜庝綘鐨刱nownhosts鏂囦歡涓紝騫朵笖榪欎釜鏂囦歡涔熷繀欏繪槸瀛樺湪鐨勶紝鍚﹀垯浼?xì)鍑虹?com.jcraft.jsch.JSchException: reject HostKey: 192.168.122.180寮傚父銆傛墽琛孡inux涓嬬殑鍛戒護(hù)鏃跺彲浠ョ敤鍒嗗彿";"鎶婂涓懡浠ら殧寮錛屽畠浠皢浼?xì)渚潒啤鎵ц锛岃屼笉闇瑕佸啓澶氫釜sshexec榪涜澶氭榪炴帴錛屾瘡嬈¤繛鎺ュ彧鎵ц涓涓懡浠ゃ?/p>

璇ヤ換鍔$殑鎵ц鍚庤緭鍑虹粨鏋滃涓嬶細(xì)

sshexec:
  [sshexec] Connecting to 192.168.122.180:22
  [
sshexec] backup
  [
sshexec] bin
  [
sshexec] boot
  [
sshexec] dev
  [
sshexecetc
  ...................

[scp浠誨姟]

1.鎷瘋礉鍗曚釜鏂囦歡鍒拌繙绔湇鍔″櫒
<scp file="c:/cmd.txt" todir="root:123456@192.168.122.180:/tmp" trust="true"/>
鎴?/font>
<scp file="c:/cmd.txt" todir="root@192.168.122.180:/tmp" password="123456" trust="true"/>

2.鎷瘋礉榪滅鏂囦歡鏈湴
<scp file="root:123456@192.168.122.180:/tmp/cmd.txt" todir="D:/my-app"  trust="true"/>

3.鎷瘋礉榪滅鐩綍鍒版湰鍦幫紝灝嗕互閫掑綊褰㈠紡鎿嶄綔
<scp file="root:123456@192.168.122.180:/tmp/*" todir="d:/my-app" trust="true"/>

4.鎷瘋礉鏈湴鐩綍涓殑鍐呭鍒拌繙绔紝閫掑綊褰㈠紡錛屼絾涓嶅湪鏈嶅姟鍣ㄤ笂寤虹珛my-app鐩綍
<scp todir="root:123456@192.168.122.180:/tmp/" trust="true">
   
<fileset dir="d:/my-app"/>
</scp>

5.鎷瘋礉涓緋誨垪鐨勬枃浠跺埌榪滅錛屼細(xì)寤虹珛鐩稿簲鐨勫眰嬈$洰褰曪紝涓嶅緩绔媘y-app鐩綍
<scp todir="root:123456@192.168.122.180:/tmp" trust="true">
   
<fileset dir="d:/my-app">
      
<include name="**/*.java" />
   
</fileset>
</scp>
鎴?br style="font: normal normal normal 12px/normal song, Verdana; "><scp todir="root:123456@192.168.122.180:/tmp" trust="true">
   
<fileset dir="d:/my-app" excludes="**/*.java"/>
</scp>

鏈鍚庝竴涓換鍔$殑鎵ц杈撳嚭緇撴灉濡備笅錛堝叾浠栫暐錛夛細(xì)

scp:
      [scp]Connecting to 192.168.122.180:22
      [
scp] Sending: cmd.txt : 0
      [
scp] File transfer time: 0.0 Average Rate: ? B/s
      [
scp] Sending: pom.xml : 852
      [
scp] File transfer time: 0.0 Average Rate: ∞ B/s
      [
scp] Sending: application.properties : 142
      [
scp] File transfer time: 0.0 Average Rate: ∞ B/s
      [
scp] Sending: application.properties : 45
      [
scp] File transfer time: 0.0 Average Rate: ∞ B/s
      [
scp] Sending: test.properties : 0
      [
scp] File transfer time: 0.02 Average Rate: 0.0 B/s
      [
scp] Sending: application.properties : 153
      [
scp] File transfer time: 0.0 Average Rate: ∞ B/s
      [
scp] Sending: application.properties : 45
      [
scp] File transfer time: 0.0 Average Rate: ∞ B/s
      [
scp] done.

涓夈佸叾浠栦緥瀛愶細(xì)

渚嬪瓙1錛?/strong>
<?xml   version= "1.0 "?> 
<project   name= "buildssh "   default= "DEFAULT "   basedir= ". "> 
<target   name= "init "> 
<!--   set   properties,   mkdir,   etc.   --> 
<property   file= "build.properties "   /> 
<property   name= "this.project "   value= "buildssh "   /> 
<echo   message= "init   in   ${this.project} "   /> 
<tstamp   /> 
</target> 

<target   name= "DEFAULT "   depends= "init "> 
<echo   message= "connecting   to   ${build.server} "   /> 
<sshexec   host= "Linux   server   IP   address "   username= "Linux   server     username "   password= "Linux   server   password "   trust= "true "   command= "Command   you   want   to   run   on   the   server "   /> 
</target> 
</project>

渚嬪瓙2錛?/strong>
import   com.jcraft.jsch.Channel;       
import   com.jcraft.jsch.ChannelSftp;       
import   com.jcraft.jsch.JSch;       
import   com.jcraft.jsch.Session;       
import   com.jcraft.jsch.UserInfo;       
    
public   class   ExecSCP   {       
        public   static   final   UserInfo   defaultUserInfo   =   new   UserInfo(){       
                public   String   getPassphrase()   {       
                        return   null;       
                }       
    
                public   String   getPassword()   {       
                        return   null;       
                }       
    
                public   boolean   promptPassword(String   arg0)   {       
                        return   false;       
                }       
    
                public   boolean   promptPassphrase(String   arg0)   {       
                        return   false;       
                }       
    
                public   boolean   promptYesNo(String   arg0)   {       
                        return   true;       
                }       
    
                public   void   showMessage(String   arg0)   {       
                }       
        };       
    
        /**     
          *   @param   args     
          */     
public   static   void   main(String[]   args)   throws   Exception{ 
String   hostname   =   "www.mozat.com "; 
String   username   =   "wiimii "; 
String   password   =   "jtev000 "; 
String   remoteFile   =   "Setup.ini "; 
String   localFile   =   "C:\\ "; 

                JSch   jsch=new   JSch(); 

                Session   session=jsch.getSession(username,   hostname,   990); 
                session.setPassword(password); 
                session.setUserInfo(defaultUserInfo); 
                session.connect(); 

                Channel   channel=session.openChannel( "sftp ");       
                channel.connect();       
                ChannelSftp   c=(ChannelSftp)channel;       
                      
                c.get(remoteFile,   localFile);   
                
                session.disconnect(); 
              } 



]]>
linux鏈嶅姟鍣ㄤ笅鐢╝nt瀹炵幇SVN浠g爜鏇存柊錛岄儴緗?/title><link>http://www.shnenglu.com/keigoliye/archive/2010/04/09/112045.html</link><dc:creator>鏆楀鏁欑埗</dc:creator><author>鏆楀鏁欑埗</author><pubDate>Fri, 09 Apr 2010 03:23:00 GMT</pubDate><guid>http://www.shnenglu.com/keigoliye/archive/2010/04/09/112045.html</guid><wfw:comment>http://www.shnenglu.com/keigoliye/comments/112045.html</wfw:comment><comments>http://www.shnenglu.com/keigoliye/archive/2010/04/09/112045.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.shnenglu.com/keigoliye/comments/commentRss/112045.html</wfw:commentRss><trackback:ping>http://www.shnenglu.com/keigoliye/services/trackbacks/112045.html</trackback:ping><description><![CDATA[<span style="font-family: Arial, sans-serif, Helvetica, Tahoma; font-size: 12px; line-height: 18px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">榪欐<span id="6661661" class="hilite1" style="background-color: rgb(255, 255, 0); ">ant</span>鑴氭湰涓昏浣滅敤灝辨槸:鑷姩浠嶴VN搴撴媺鏈鏂扮殑浠g爜錛岀紪璇戙佸茍鑷姩閮ㄧ講鍒版祴璇曟湇鍔″櫒銆?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "> </p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">鍏朵腑鐢ㄥ埌浜?#8220;antsvn” 錛屾湁3涓猨ar鍖呴渶瑕侀厤緗繘鍘?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-family: monospace; line-height: normal; font-size: 13px; white-space: pre; "><span style="color: rgb(0, 0, 255); "><?</span><span style="color: rgb(255, 0, 255); ">xml version="1.0" encoding="UTF-8"</span><span style="color: rgb(0, 0, 255); ">?></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); "> wei.songw 2008.3.19 </span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">project </span><span style="color: rgb(255, 0, 0); ">basedir</span><span style="color: rgb(0, 0, 255); ">="."</span><span style="color: rgb(255, 0, 0); "> name</span><span style="color: rgb(0, 0, 255); ">="smmail"</span><span style="color: rgb(255, 0, 0); "> default</span><span style="color: rgb(0, 0, 255); ">="auto"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); "> all properties are in build.properties </span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">property </span><span style="color: rgb(255, 0, 0); ">file</span><span style="color: rgb(0, 0, 255); ">="build.properties"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">svn鏈韓闇瑕佺殑榪愯搴?</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">path </span><span style="color: rgb(255, 0, 0); ">id</span><span style="color: rgb(0, 0, 255); ">="svnant.lib"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">pathelement </span><span style="color: rgb(255, 0, 0); ">location</span><span style="color: rgb(0, 0, 255); ">="${svnjavahl.jar}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">pathelement </span><span style="color: rgb(255, 0, 0); ">location</span><span style="color: rgb(0, 0, 255); ">="${svnant.jar}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">pathelement </span><span style="color: rgb(255, 0, 0); ">location</span><span style="color: rgb(0, 0, 255); ">="${svnClientAdapter.jar}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">java EE 1.4 搴?</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">path </span><span style="color: rgb(255, 0, 0); ">id</span><span style="color: rgb(0, 0, 255); ">="javaEE1.4"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">fileset </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${javaEE1.4.lib}"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">include </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="**/*.jar"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">fileset</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">欏圭洰鐨刢lasspath搴?</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">path </span><span style="color: rgb(255, 0, 0); ">id</span><span style="color: rgb(0, 0, 255); ">="project.classpath"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">pathelement </span><span style="color: rgb(255, 0, 0); ">location</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">fileset </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${lib.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">娓呯悊欏圭洰浠誨姟(騫叉帀涓嬭澆鐩綍錛宼omcat鍘熸潵鐨勯儴緗叉枃浠? </span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="clear"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">delete </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${work.space}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">delete </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/work/Catalina/localhost/${ant.project.name}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">delete </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/webapps/${ant.project.name}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">delete </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/webapps/${ant.project.name}.war"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); "> load the svn task </span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">taskdef </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="svn"</span><span style="color: rgb(255, 0, 0); "> classname</span><span style="color: rgb(0, 0, 255); ">="org.tigris.subversion.svnant.SvnTask"</span><span style="color: rgb(255, 0, 0); "> classpathref</span><span style="color: rgb(0, 0, 255); ">="svnant.lib"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">svn鍚屾浠誨姟</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="svn"</span><span style="color: rgb(255, 0, 0); "> depends</span><span style="color: rgb(0, 0, 255); ">="clear"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">mkdir </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${work.space}"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">svn </span><span style="color: rgb(255, 0, 0); ">username</span><span style="color: rgb(0, 0, 255); ">="SongWei"</span><span style="color: rgb(255, 0, 0); "> password</span><span style="color: rgb(0, 0, 255); ">="Song"</span><span style="color: rgb(255, 0, 0); "> javahl</span><span style="color: rgb(0, 0, 255); ">="false"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">checkout </span><span style="color: rgb(255, 0, 0); ">url</span><span style="color: rgb(0, 0, 255); ">="${urlRepos}"</span><span style="color: rgb(255, 0, 0); "> destPath</span><span style="color: rgb(0, 0, 255); ">="${work.space}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">svn</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">緙栬瘧</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="compile"</span><span style="color: rgb(255, 0, 0); "> depends</span><span style="color: rgb(0, 0, 255); ">="svn"</span><span style="color: rgb(255, 0, 0); "> description</span><span style="color: rgb(0, 0, 255); ">="======compile project======"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">echo </span><span style="color: rgb(255, 0, 0); ">message</span><span style="color: rgb(0, 0, 255); ">="compile==========>${ant.project.name}: ${ant.file}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">mkdir </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">copy </span><span style="color: rgb(255, 0, 0); ">includeemptydirs</span><span style="color: rgb(0, 0, 255); ">="false"</span><span style="color: rgb(255, 0, 0); "> todir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">fileset </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${java.source}"</span><span style="color: rgb(255, 0, 0); "> excludes</span><span style="color: rgb(0, 0, 255); ">="**/*.launch, **/*.java, config/*.*"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">copy</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">copy </span><span style="color: rgb(255, 0, 0); ">includeemptydirs</span><span style="color: rgb(0, 0, 255); ">="false"</span><span style="color: rgb(255, 0, 0); "> todir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">fileset </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${java.config}"</span><span style="color: rgb(255, 0, 0); "> excludes</span><span style="color: rgb(0, 0, 255); ">="**/*.launch, **/*.java"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">copy</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">javac </span><span style="color: rgb(255, 0, 0); ">includejavaruntime</span><span style="color: rgb(0, 0, 255); ">="true"</span><span style="color: rgb(255, 0, 0); "> debug</span><span style="color: rgb(0, 0, 255); ">="true"</span><span style="color: rgb(255, 0, 0); "> debuglevel</span><span style="color: rgb(0, 0, 255); ">="${debuglevel}"</span><span style="color: rgb(255, 0, 0); "> destdir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(255, 0, 0); "> source</span><span style="color: rgb(0, 0, 255); ">="${source}"</span><span style="color: rgb(255, 0, 0); "> target</span><span style="color: rgb(0, 0, 255); ">="${target}"</span><span style="color: rgb(255, 0, 0); "> encoding</span><span style="color: rgb(0, 0, 255); ">="utf-8"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">src </span><span style="color: rgb(255, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">="${java.source}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">exclude </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="config/"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">classpath</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">path </span><span style="color: rgb(255, 0, 0); ">refid</span><span style="color: rgb(0, 0, 255); ">="project.classpath"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">path </span><span style="color: rgb(255, 0, 0); ">refid</span><span style="color: rgb(0, 0, 255); ">="javaEE1.4"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">classpath</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">javac</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">javac </span><span style="color: rgb(255, 0, 0); ">debug</span><span style="color: rgb(0, 0, 255); ">="true"</span><span style="color: rgb(255, 0, 0); "> debuglevel</span><span style="color: rgb(0, 0, 255); ">="${debuglevel}"</span><span style="color: rgb(255, 0, 0); "> destdir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(255, 0, 0); "> source</span><span style="color: rgb(0, 0, 255); ">="${source}"</span><span style="color: rgb(255, 0, 0); "> target</span><span style="color: rgb(0, 0, 255); ">="${target}"</span><span style="color: rgb(255, 0, 0); "> encoding</span><span style="color: rgb(0, 0, 255); ">="utf-8"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">src </span><span style="color: rgb(255, 0, 0); ">path</span><span style="color: rgb(0, 0, 255); ">="${java.config}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">javac</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">鍘嬬緝錛屾墦鍖?/span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="war"</span><span style="color: rgb(255, 0, 0); "> depends</span><span style="color: rgb(0, 0, 255); ">="compile"</span><span style="color: rgb(255, 0, 0); "> description</span><span style="color: rgb(0, 0, 255); ">="======compress j2ee war file======"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">mkdir </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${dist.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">compress j2ee war file</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">war </span><span style="color: rgb(255, 0, 0); ">destfile</span><span style="color: rgb(0, 0, 255); ">="${war.file}"</span><span style="color: rgb(255, 0, 0); "> webxml</span><span style="color: rgb(0, 0, 255); ">="${web.dir}/WEB-INF/web.xml"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">fileset </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${web.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">classes </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${build.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">lib </span><span style="color: rgb(255, 0, 0); ">dir</span><span style="color: rgb(0, 0, 255); ">="${lib.dir}"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">war</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">shutdowntomcat</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="shutdowntomcat"</span><span style="color: rgb(255, 0, 0); "> description</span><span style="color: rgb(0, 0, 255); ">="========shutdowntomcat==========="</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">exec </span><span style="color: rgb(255, 0, 0); ">executable</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/bin/shutdown.sh"</span><span style="color: rgb(255, 0, 0); "> failonerror</span><span style="color: rgb(0, 0, 255); ">="false"</span><span style="color: rgb(0, 0, 255); ">></</span><span style="color: rgb(128, 0, 0); ">exec</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">sleep </span><span style="color: rgb(255, 0, 0); ">seconds</span><span style="color: rgb(0, 0, 255); ">="10"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">startuptomcat</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="startuptomcat"</span><span style="color: rgb(255, 0, 0); "> description</span><span style="color: rgb(0, 0, 255); ">="========startuptomcat==========="</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">sleep </span><span style="color: rgb(255, 0, 0); ">seconds</span><span style="color: rgb(0, 0, 255); ">="5"</span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">exec </span><span style="color: rgb(255, 0, 0); ">executable</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/bin/startup.sh"</span><span style="color: rgb(255, 0, 0); "> failonerror</span><span style="color: rgb(0, 0, 255); ">="false"</span><span style="color: rgb(0, 0, 255); ">></</span><span style="color: rgb(128, 0, 0); ">exec</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">閮ㄧ講鍒皌omcat涓嬮潰鍏?/span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="deploy"</span><span style="color: rgb(255, 0, 0); "> depends</span><span style="color: rgb(0, 0, 255); ">="war"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">copy </span><span style="color: rgb(255, 0, 0); ">file</span><span style="color: rgb(0, 0, 255); ">="${war.file}"</span><span style="color: rgb(255, 0, 0); "> todir</span><span style="color: rgb(0, 0, 255); ">="${tomcat.home}/webapps"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 128, 0); "><!--</span><span style="color: rgb(0, 128, 0); ">鍏ㄨ嚜鍔ㄦ棤鏁岄儴緗詫紝鍚姩鍏抽棴tomcat</span><span style="color: rgb(0, 128, 0); ">--></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">target </span><span style="color: rgb(255, 0, 0); ">name</span><span style="color: rgb(0, 0, 255); ">="auto"</span><span style="color: rgb(255, 0, 0); "> depends</span><span style="color: rgb(0, 0, 255); ">="shutdowntomcat,deploy,startuptomcat"</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "><</span><span style="color: rgb(128, 0, 0); ">echo </span><span style="color: rgb(255, 0, 0); ">message</span><span style="color: rgb(0, 0, 255); ">="DONE!!!!"</span><span style="color: rgb(255, 0, 0); "> </span><span style="color: rgb(0, 0, 255); ">/></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">target</span><span style="color: rgb(0, 0, 255); ">></span><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(0, 0, 255); "></</span><span style="color: rgb(128, 0, 0); ">project</span><span style="color: rgb(0, 0, 255); ">></span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-family: monospace; line-height: normal; font-size: 13px; white-space: pre; "><span style="color: rgb(0, 0, 255); "><br></span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-family: monospace; line-height: normal; font-size: 13px; white-space: pre; "><span style="color: rgb(0, 0, 255); "><span style="color: rgb(0, 0, 0); font-family: Arial, sans-serif, Helvetica, Tahoma; white-space: normal; font-size: 12px; line-height: 18px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">涓嬮潰鏄痓uild.xml鎸囧畾鐨刾roperties鏂囦歡錛岄渶瑕佸拰build.xml鏀懼湪鍚屼竴涓洰褰曚笅闈?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">闇瑕佹寚瀹?font color="#ff0000">work.space</font>錛坰vn鎷変笅鏉ヤ唬鐮佺殑瀛樻斁錛屽凡緇忕紪璇戯紝鎵撳寘鐢ㄧ殑涓存椂鐩綍錛?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">tomcat.home</font><font size="3" color="#000000">錛?font size="1">tomcat鏈嶅姟鍣ㄧ殑鏍圭洰褰?濡傛灉鏄叾浠栨湇鍔″櫒錛岄渶瑕佷慨鏀瑰搴旈」</font>錛?/font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font size="3">===============================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">build.version=1.0.0</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">svnant.jar=/usr/java/svn/svnant.jar<br>svnClientAdapter.jar=/usr/java/svn/svnClientAdapter.jar<br>svnjavahl.jar=/usr/java/svn/svnjavahl.jar<br>javaEE1.4.lib=/usr/javaEE-1.4</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">debuglevel=source,lines<br>target=1.6<br>source=1.6</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">work.space=/home/gmail/workspace<br>dist.dir=${work.space}</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">build.dir=${work.space}/WebRoot/WEB-INF/classes<br>lib.dir=${work.space}/WebRoot/WEB-INF/lib</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">java.source=${work.space}/src<br>java.config=${work.space}/src/config</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">web.dir=${work.space}/WebRoot<br>resource.dir=${work.space}/resources</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">tomcat.home=/home/gmail/tomcat6<br>war.file=${dist.dir}/${<span id="6111111" class="hilite1" style="background-color: rgb(255, 255, 0); ">ant</span>.project.name}.war</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font color="#ff0000">urlRepos=svn://192.168.1.100/product/SMMAIL/Develop</font></p></span></span></span></p></span> <img src ="http://www.shnenglu.com/keigoliye/aggbug/112045.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/keigoliye/" target="_blank">鏆楀鏁欑埗</a> 2010-04-09 11:23 <a href="http://www.shnenglu.com/keigoliye/archive/2010/04/09/112045.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Using SVN With Anthttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112044.html鏆楀鏁欑埗鏆楀鏁欑埗Fri, 09 Apr 2010 03:20:00 GMThttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112044.htmlhttp://www.shnenglu.com/keigoliye/comments/112044.htmlhttp://www.shnenglu.com/keigoliye/archive/2010/04/09/112044.html#Feedback0http://www.shnenglu.com/keigoliye/comments/commentRss/112044.htmlhttp://www.shnenglu.com/keigoliye/services/trackbacks/112044.html鎽樿錛?br>銆銆Subversion鏄秺鏉ヨ秺琚箍娉涗嬌鐢ㄧ殑鐗堟湰綆$悊宸ュ叿錛屼嬌鐢ˋnt鑴氭湰浠嶴ubversion鑾峰彇浠g爜錛屽疄鐜癉aily Build銆?br>銆銆1錛嶴ubversion姒傝堪
銆銆鍏堝紩鐢?a rel="nofollow" class="bbs" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font: normal normal normal 12px/normal 瀹嬩綋; font-size: 14px; ">Version Control with Subversion 涓紑澶寸殑璇濓細(xì)
銆銆“If C gives you enough rope to hang yourself, think of Subversion as a sort of rope storage facility.” 
銆銆 鈥擝rian W. Fitzpatrick
銆銆鐒跺悗鍛婅瘔澶уCVS鏄棫鐖憋紝Subversion鏄柊嬈€傚垪涓捐嫢騫睸ubversion鐨勭壒鎬у拰浼樺娍涓鴻瘉錛屾噿寰楀啓浜嗭紝鐩存帴鐪嬭繖閲岋細(xì)Subversion鐨勮佸銆?br>銆銆鍏充簬濡備綍浣跨敤Subversion浠ュ強(qiáng)鐩稿叧瀹㈡埛绔蔣浠訛紝緗戜笂鎱㈡參鐪嬪惂錛?a rel="nofollow" class="bbs" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font: normal normal normal 12px/normal 瀹嬩綋; font-size: 14px; ">瀹樻柟鑷敱鍥句功涓嶉敊銆?br>銆銆2錛庤殏铓佸嚭鍦?br>銆銆鍥㈤槦鏈榪戠殑欏圭洰涓嵆浣跨敤Subversion浣滀負(fù)鐗堟湰鎺у埗宸ュ叿銆侱aily Build榪囦袱澶╁氨寰楁惌寤鴻搗鏉ヤ簡錛屼笂铓傝殎錛?br>銆銆Tigris.org鎻愪緵浜哠ubclipse錛孲vnClientAdapter鍜孲vnAnt銆?瑙?a rel="nofollow" class="bbs" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font: normal normal normal 12px/normal 瀹嬩綋; font-size: 14px; ">榪欓噷)
銆銆Subclipse鏄竴涓狤clipse鐨勬彃浠訛紝瀹炵幇浜咺DE涓嶴ubversion寰楅泦鎴愶紱
銆銆SvnClientAdapter鏄疭ubversion鐨勪竴濂桱ava API錛屽皝瑁呬簡瀹㈡埛绔Subversion鐨勪竴浜涜闂搷浣滐紱
銆銆SvnAnt鏄敤浜庤闂甋ubversion鐨凙nt浠誨姟錛屽叾渚濊禆浜嶴vnClientAdapter銆?br>銆銆鎴戣鐢ㄧ殑灝辨槸SvnAnt錛岀敤SVN Check Out涓浠絊vnAnt鐨勪唬鐮侊細(xì)
銆銆 
銆銆 
銆銆 
銆銆 
銆銆 svn co http://subclipse.tigris.org/svn/subclipse/trunk/svnant/ svnant
銆銆 
銆銆 
銆銆 
銆銆 
銆銆鍦ㄨ繖涓伐紼嬮噷闈㈣繕鍖呮嫭svnant鐨凙nt Task浣跨敤璇存槑鏂囨。錛屼篃鍙互鍦?a rel="nofollow" class="bbs" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font: normal normal normal 12px/normal 瀹嬩綋; font-size: 14px; ">榪欓噷鐩存帴鏌ョ湅銆?br>銆銆浣跨敤鍏朵腑鐨刡uild.xml緙栬瘧SvnAnt鍚庯紝鍦ㄦ柊鐢熸垚鐨刡uild瀛愮洰褰曚笅浼?xì)鐢熸垚svnant.jar銆傛寜鐓у畼鏂規(guī)枃妗g殑璇存硶錛屾妸榪欎釜svnant.jar鍜孲vnAnt宸ョ▼鐨刲ib鐩綍涓嬬殑svnClientAdapter.jar鍜宻vnjavahl.jar鎷瘋礉鍒癆nt鐨勭洰褰曚笅鍗沖彲銆傜劧鍚庣紪鍐欏涓嬬殑Ant鑴氭湰榪涜嫻嬭瘯錛?br>銆銆 
銆銆 
銆銆 
銆銆 
銆銆 <?xml version="1.0"?>
銆銆 <project name="SVN Ant Test" default="checkout" basedir=".">
銆銆 <!-- 1 -->
銆銆 <property name="remote.url"
銆銆 value="svn://16.157.xxx.xxx/trunk/LNPORTAL/src/P3UIPAdapter/" />
銆銆 <property name="local.dir" value="local" /> 
銆銆 <!-- 2 -->
銆銆 <taskdef name="svn" classname="org.tigris.subversion.svnant.SvnTask" />
銆銆 <target name="prepare"
銆銆 description="Prepare the dirs for other tasks">
銆銆 <delete dir="${local.dir}" />
銆銆 <mkdir dir="${local.dir}" />
銆銆 </target>
銆銆 <!-- 3-->
銆銆 <target name="checkout" depends="prepare">
銆銆 <svn javahl="true" username="lihq" password="password" >
銆銆 <checkout url="${remote.url}" destPath="${local.dir}" />
銆銆 </svn>
銆銆 </target>
銆銆 </project>
銆銆 
銆銆 
銆銆 
銆銆 
銆銆嫻嬭瘯緇撴灉鏆傛椂涓嶉噸瑕併?br>銆銆3錛嶫avaSVN鍑哄満
銆銆SvnAnt鐨勬墽琛屼緷璧朣vnClientAdapter錛岃屾墽琛岃闂甋VN鏃跺張鏈変袱縐嶅艦寮忥細(xì)鍏朵竴鏄氳繃SVN 鍛戒護(hù)琛岀▼搴忕殑褰㈠紡榪涜鐨勶紙鎴戝湪鎯籌細(xì)濡傛灉鏄繖鏍鳳紝榪樹笉濡備嬌鐢ˋnt鐨別xec浠誨姟鍛級錛涘叾浜屾槸閫氳繃Javahl鏉ユ墽琛岀殑銆?br>銆銆Javahl鏄竴涓敤浜庤闂甋ubversion鐨凧ava鎺ュ彛錛堜及璁℃槸JNI錛夛紝榪欓渶瑕乄indows鏈轟笂鏈塻vnjavahl.dll鎵嶈銆傚洟闃熺殑Daily Build鐨勫茍涓嶆槸Windows錛屼簬鏄眰鍔㎎avaSVN錛岃繖鏄竴涓函Java鐨凷VN瑙e喅鏂規(guī)銆?br>銆銆璇瘋闂繖涓狦uide錛?a rel="nofollow" class="bbs" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font: normal normal normal 12px/normal 瀹嬩綋; font-size: 14px; ">Making SvnAnt use JavaSVN
銆銆鎴戠殑瀹為檯姝ラ濡備笅錛?br>銆銆Step 1錛氫粠Ant鐨刲ib鐩綍涓嬬Щ闄vnClientAdapter.jar錛屾垜娌℃湁鍙戠幇javahl.jar錛屼簬鏄究縐婚櫎浜唖vnjavahl.jar錛屽叾瀹炵Щ涓嶇Щ鍚庤呮棤鎵璋擄紱
銆銆Step 2錛氬湪鍒氭墠閭d釜欏甸潰涓嬭澆javasvn.jar鍜宩avasvn-javahl.jar錛屼互鍙?qiáng)JavaSVN鐨剆vnClientAdapter-0.9.32.jar銆傚茍鎶婅繖涓変釜jar閮芥嫹璐濆埌Ant鐨刲ib鐩綍涓嬶紱
銆銆鐒跺悗榪愯涓婇潰鍐欑殑SVN Ant嫻嬭瘯鑴氭湰錛岀粨鏋滃涓嬶細(xì)
銆銆 
銆銆 
銆銆 
銆銆 …
銆銆 BUILD FAILED
銆銆 java.lang.AbstractMethodError: org.tigris.subversion.svnant.Feedback.logRevision(J)V
銆銆 
銆銆 Total time: 7 seconds
銆銆 
銆銆 
銆銆 
銆銆铏界劧SVN鐨勪唬鐮侀兘鍙栦笅鏉ヤ簡錛屼絾鏈鍚嶢nt浼?xì)鎶涘囖Z竴涓涓婄殑閿欙紝榪欎細(xì)浣垮緱Ant鑴氭湰鏃犳硶榪愯鍚庨潰鐨勪換鍔°?br>銆銆4錛嶵hanks Open Source
銆銆鐪嬫潵錛屽ぇ姒傛槸JavaSVN鐢ㄨ嚜宸辯殑svnClientAdapter-0.9.32.jar鏀瑰彉浜哠VNAnt鏈潵瀵硅皟鐢ㄣ係VNAnt錛坆y Tigris.org錛夊師鍏堟槸璋冪敤svnjavahl.jar鏉ヨ繍琛孲VN鍛戒護(hù)鐨勩傛浛鎹vnClientAdapter-0.9.32.jar鍚庯紝SVNAnt錛坧lus JavaSVN錛夋槸璋冪敤javasvn-javahl.jar鍜宩avasvn.jar鏉ヨ繍琛孲VN鍛戒護(hù)鐨勩備笂闈㈤偅涓敊璇ぇ姒傚氨鏄袱濂梥vnClientAdapter瀵規(guī)煇涓娊璞℃柟娉曠殑瀹氫箟涓嶅畬鍏ㄤ竴鑷撮犳垚鐨勶紝浼拌鏄疉PI鐗堟湰瀵瑰簲鐨勯棶棰樸傝В鍐沖涓嬶細(xì)
銆銆棣栧厛鏌ョ湅svnant.jar鐨勬簮浠g爜錛屽彂鐜皁rg.tigris.subversion.svnant.Feedback鏄疄鐜皊vnClientAdapter.jar涓殑涓涓悕涓篒SVNNotifyListener鐨勬帴鍙c傝繖涓帴鍙d腑瀵規(guī)姤閿欑殑logRevision鏂規(guī)硶鐨勫畾涔夋槸錛?br>銆銆 
銆銆 
銆銆 
銆銆 
銆銆 public abstract void logRevision(long revision, String path)
銆銆 
銆銆 
銆銆 
銆銆 
銆銆鑰屾煡鐪媠vnClientAdapter-0.9.32.jar涓殑ISVNNotifyListener鐨勬帴鍙d腑鐨勫畾涔夋槸錛?br>銆銆 
銆銆 
銆銆 
銆銆 
銆銆 public abstract void logRevision(long revision)
銆銆 
銆銆 
銆銆 
銆銆 
銆銆鏄庢樉涓嶅尮閰嶏紝浜庢槸淇敼svnant.jar鐨勬簮浠g爜錛屼慨鏀筼rg.tigris.subversion.svnant.Feedback錛岃薄鍏朵腑娣誨姞涓涓柟娉曞涓嬶細(xì)
銆銆 
銆銆 
銆銆 
銆銆 
銆銆 //This method is added by Beegee
銆銆 public void logRevision(long revision) {
銆銆 }
銆銆 
銆銆 //This method is the original one by SVNANT
銆銆 public void logRevision(long revision, String path) {
銆銆 }
銆銆 
銆銆 
銆銆 
銆銆 
銆銆鐒跺悗閲嶆柊緙栬瘧SVNAnt錛岀敓鎴恠vnant.jar錛屾嫹璐濇浛鎹nt 鐨刲ib鐩綍涓嬬殑鍚屽悕jar錛岄噸鏂拌繍琛屼互涓奡VN Ant嫻嬭瘯鑴氭湰錛岀粨鏋滃涓嬶細(xì)
銆銆

銆銆OK錛?br>銆銆錛峞nd錛?/span>

]]>
999久久久无码国产精品| 青青青青久久精品国产| 精品久久久久久久中文字幕| 精品无码久久久久国产| 99久久超碰中文字幕伊人| 亚洲国产成人久久综合野外| 精品久久人人做人人爽综合| 久久不射电影网| 久久被窝电影亚洲爽爽爽| 国产精品毛片久久久久久久| 久久99精品国产麻豆| 久久精品国产亚洲av水果派 | 久久狠狠高潮亚洲精品| 婷婷五月深深久久精品| 囯产精品久久久久久久久蜜桃| 久久乐国产综合亚洲精品| 浪潮AV色综合久久天堂| 久久亚洲精精品中文字幕| 久久精品中文闷骚内射| 久久亚洲国产欧洲精品一| 久久精品国产免费| 久久国产福利免费| 久久综合色之久久综合| 久久久久亚洲av综合波多野结衣 | 久久久一本精品99久久精品88| 无码人妻久久一区二区三区免费丨| 无码人妻久久久一区二区三区| 少妇精品久久久一区二区三区| 久久婷婷五月综合97色一本一本| 久久人人爽爽爽人久久久| 亚洲国产成人久久综合一| 蜜臀久久99精品久久久久久| 久久久久久久久久久久久久| 久久精品九九亚洲精品| 91麻精品国产91久久久久| 伊人 久久 精品| 9久久9久久精品| 日批日出水久久亚洲精品tv| 精品熟女少妇a∨免费久久| 91性高湖久久久久| 中文无码久久精品|