且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ant 中的动态属性名称

更新时间:2023-11-24 22:32:40

看看 ant-contrib 包.它的 propertycopy 任务将满足您的需求.如果您需要按照既定模式解析任意数量的属性,您可以将 ant-contrib 的 propertycopy 与 ant-contribs 的for"任务结合使用.

Take a look at ant-contrib package. Its propertycopy task will do what you need. If you need to resolve an arbitrary number of properties following an established pattern, you would use ant-contrib's propertycopy in conjunction with ant-contribs "for" task.

http://ant-contrib.sourceforge.net/tasks/tasks/index.html