3
Q
ant條件導入
A
回答
2
是的,你可以。 例如:
<target name="importFile" depends="myProperty.check" if="myPropertyIsSet">
<echo>Import my file here</echo>
</target>
<target name="myTarget.check">
<condition property="myPropertyIsSet">
<and>
<!-- Conditions to check if my property is set. -->
</and>
</condition>
</target>
可用的條件在Apache Ant Manual說明。
相關問題
- 1. MSBuild條件導入
- 2. 有條件導入
- 3. DB2條件導入
- 4. 在Ant中嵌套導入
- 5. build.xml ant腳本條件
- 6. 使用Ant條件標籤
- 7. Swift中的條件導入
- 8. MEF有條件導入
- 9. TypeScript - 條件模塊導入/導出
- 10. Ant中有條件的ivysettings文件
- 11. 強制條件導入csv文件
- 12. 將JMeter項目(ant)導入Eclipse Juno
- 13. Eclipse導入Ant生成不正確
- 14. Ant項目導入不正確到Eclipse
- 15. 導入文件mechanisem如何在Apache ANT中工作
- 16. 使用ant構建文件導入一個web項目
- 17. Selenium if/else條件與Apache Ant
- 18. 在ANT中使用條件長度
- 19. ANT場景條件依賴目標
- 20. Ant中的條件標記替換
- 21. 在Ant中使用If條件javac patternset
- 22. Neo4j有條件批量導入
- 23. 用Python導入條件模塊
- 24. CSS有條件@導入問題
- 25. Python 3自動條件導入?
- 26. Python條件導入和資源
- 27. Dart包的有條件導入/代碼
- 28. 導軌查詢 - 有條件加入
- 29. 有條件地導入框架
- 30. iPhone導航條插入png文件
謝謝你會試一試 – user373201 2010-06-22 16:58:05
這沒有用。從ant 1.7開始,你不能在目標中使用導入。它必須是一個頂級的任務 – user373201 2010-06-22 17:11:50
Ouch,我的錯。另外,導入任務的可選屬性不夠嗎? – uthark 2010-06-22 17:36:23