1
我必須通過Apache config.xml配置IPV6。我通過ADDR6讀取IP。我想把它傳遞給像這樣的命令- ant -f config.xml configureForIPv6 <IP>
。目標很容易通過,但我如何通過IP的論點? Ant不喜歡參數值。帶有參數的Ant任務
<ant antfile="${APACHE_HOME}/config.xml" target="configureForIPv6" arg="-DIPv6_Interface=${ADDR6}" inheritRefs="true"> ?
當我使用'-propertyfile = value'時,ant抱怨說:「使用-propertyfile參數時,必須指定一個屬性文件名」。我不得不使用'-propertyfile值' – 2011-11-09 17:21:49
@GregK - 的確 - 感謝並修復。 – 2011-11-09 17:29:13
馬丁謝謝,我知道它運行如下所示; 通過將其設置在我的文件本身中繼承該屬性 謝謝Praveen – Zack 2012-03-26 11:46:55