Ant FilterSet
来源:互联网 发布:查看端口是否打开 编辑:程序博客网 时间:2024/06/06 08:31
FilterSet是一组Filter的集合,那什么是Filter,这个词英文的意思是过滤。Filtersets are used for doing replacements in tasks such as <copy>
, etc.
@DATE@
).@NoendtokenThe string marking the end of a token (eg., @DATE@
).@NofiltersfileSpecify a single filtersfile.noneNorecurseIndicates whether the replacement text of tokens should be searched for more tokens. Since Ant 1.6.3trueNoonmissingfiltersfileIndicate behavior when a nonexistent filtersfile is specified. One of "fail", "warn", "ignore". Since Ant 1.7"fail"NoFilter
AttributeDescriptionRequiredtokenThe token to replace (eg.,@DATE@
)YesvalueThe value to replace it with (eg., Thursday, April 26, 2001
).YesFiltersfile
AttributeDescriptionRequiredfileA properties file of name-value pairs from which to load the tokens.Yes
看个例子:
<copy file="${build.dir}/version.txt" toFile="${dist.dir}/version.txt">
<filterset begintoken="%" endtoken="*">
<filter token="DATE" value="${TODAY}"/>
</filterset>
</copy>
copying theversion.txt
file to thedist
directory from the build directory but wish to replace the token%DATE*
with today's date.
- Ant FilterSet
- ant
- ant
- Ant
- ant
- ANT
- ANT
- ant
- ant
- ant
- ant
- ant
- ANT
- ant
- ant
- ANT
- ANT
- ant
- delphi jmail 发邮件
- Oracle DDL,DML,DCL,TCL 基础概念
- WDK中的Prefast工具使用
- KVM&OpenVZ虚拟化和使用Proxmox VE进行云计算
- linux无法启动之-“/dev/xxx unexpected inconsistency, run fsck manually”的解决
- Ant FilterSet
- 详解JAVA I/O之二——java.io层次结构
- MyEclipse 8.6 download 官方下载地址
- VC创建可隐藏文件夹的方法
- SummerTree微博客户端(试玩1.0下载--2011-07-05更新)
- 快速排序算法 函数实现
- Android的多媒体框架OpenCore介绍
- 金融危机和次贷危机
- Qt Permission denied问题