[英]How to overwrite property file value with the one passed with ant -D key?
[英]How to send one property file and a value as parameters to an Ant script?
是否可以將一個屬性文件和一個單獨的值作為兩個不同的參數發送到Ant腳本?
例如build.xml propertyfile = propfile -Dname1 = value1
RTFM ;-)意味着請參閱運行Apache Ant的 Ant手冊,fe
ant -f whatever.xml -propertyfile=/var/usr/foobar.properties -Dfoo=bar
可以使用多個-Dkey = value或-propertyfile = path / to / propertyfile
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.