【发布时间】:2012-02-02 06:02:38
【问题描述】:
我知道我可以使用 ANT 的concat 将多个文件合并为一个文件。但是将文件合并到变量中呢?
这个可以吗?
【问题讨论】:
我知道我可以使用 ANT 的concat 将多个文件合并为一个文件。但是将文件合并到变量中呢?
这个可以吗?
【问题讨论】:
concat可以作为资源集合使用,所以可以在loadresource中使用:
<loadresource property="the.property">
<concat>
<file file="foo.txt" />
<file file="another_file.txt />
<string>You can put any resource in here, not just files!</string>
</concat>
</loadresource>
现在the.property 属性将包含concat 内所有资源的串联。 (当您说变量时,我假设您的意思是蚂蚁属性。)
【讨论】: