在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 教程/ Linux/ Ant Concat任務(wù)
Ant Telnet任務(wù)
Ant Javac任務(wù)
Apache Ant構(gòu)建文件-project標(biāo)簽
Apache Ant任務(wù)失敗
Apache Ant目標(biāo)-target標(biāo)簽
Apache Ant API
Ant Condition任務(wù)
Ant過濾器任務(wù)
Ant Mkdir創(chuàng)建目錄任務(wù)
Ant休眠任務(wù)
Apache Ant入門程序(Hello World)
Apache Ant InputHandler接口
Ant JUnit任務(wù)
Apache Ant自定義組件
Apache Ant參數(shù)處理器
Apache Ant令牌過濾器
Apache Ant IDE集成
Ant Concat任務(wù)
Apache Ant安裝
ANT教程
Apache Ant類型
Ant EAR任務(wù)
Ant簡介
Ant長度任務(wù)
Ant Chmod任務(wù)
Ant LoadFile任務(wù)
Ant導(dǎo)入任務(wù)
Apache Ant If和Unless用法
Ant Gzip任務(wù)
Ant移動(dòng)文件任務(wù)
Apache Ant Jar示例
Apache Ant任務(wù)-task標(biāo)簽
Apache Ant監(jiān)聽器和記錄器
Ant AntStructure任務(wù)
Ant刪除任務(wù)
Apache Ant Java任務(wù)
Apache Ant basename任務(wù)
Ant Zip任務(wù)
Ant之外的Apache Ant任務(wù)
Ant Copy任務(wù)
Ant CVS任務(wù)
Apache Ant命令行參數(shù)
Apache Ant功能特性
Apache Ant屬性
Ant War任務(wù)

Ant Concat任務(wù)

連接用于將一個(gè)或多個(gè)文件連接到單個(gè)文件。 如果新文件不存在,則將創(chuàng)建新文件,除非資源列表為空并且ignoreemptytrue。

從Apache Ant 1.7.1開始,此任務(wù)可用作僅返回一個(gè)資源的資源集合。

資源集合用于選擇要連接的資源。 沒有單一屬性來指定連接文件的單個(gè)資源。

1. Ant Concat任務(wù)屬性

屬性 描述 必需
destfile 連接流的目標(biāo)文件
append 它指定是否應(yīng)追加destfile屬性指定的文件。
force 它指定是否應(yīng)寫入destfile指定的文件。
overwrite 它指定是否應(yīng)寫入destfile指定的文件。
forceReadOnly 它會(huì)覆蓋只讀目標(biāo)文件。
encoding 它指定輸入文件的編碼。
outputencoding 編寫輸出文件時(shí)使用的編碼。
fixlastline 它指定是否檢查每個(gè)連接的文件是否被新行終止。
eol 它指定了fixlastline屬性使用的行尾字符的內(nèi)容。
binary 如果此屬性設(shè)置為true,則任務(wù)以逐字節(jié)方式連接文件。
ignoreempty 指定如果源資源列表為空,是否應(yīng)創(chuàng)建destfile指定的文件。 否; 默認(rèn)為true
resourcename 指定在將此任務(wù)作為資源公開時(shí)報(bào)告的名稱。

2. Apache Ant Concat示例

將字符串連接到文件:

<concat destfile="README">Hello, World!</concat>

將一系列文件連接到控制臺(tái):

<concat>  
  <fileset dir="messages" includes="*important*"/>  
</concat>