[英]How to send one property file and a value as parameters to an Ant script?
Is it possible to send one property file and a separate value as two different parameters to an Ant script ? 是否可以将一个属性文件和一个单独的值作为两个不同的参数发送到Ant脚本?
Eg build.xml propertyfile=propfile -Dname1=value1 例如build.xml propertyfile = propfile -Dname1 = value1
RTFM ;-) means see Ant manual running Apache Ant , fe RTFM ;-)意味着请参阅运行Apache Ant的 Ant手册,fe
ant -f whatever.xml -propertyfile=/var/usr/foobar.properties -Dfoo=bar
multiple -Dkey=value or -propertyfile=path/to/propertyfile are possible 可以使用多个-Dkey = value或-propertyfile = path / to / propertyfile
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.