ANT вопросы и ответы для интервью
Question: How to set property file in Ant script?Answer: <!-- Import properties from build.properties --><property name="build.properties" value="${basedir}/conf/build.properties" /> <fail message="Missing build.properties file: please use -Dbuild.properties=/path/to/file"> <condition> <not> <available file="${build.properties}" type="file" /> </not> </condition> </fail> <property file="${build.properties}" /> |
Сохранить для повторения
Добавьте этот элемент в закладки, отметьте как сложный или поместите в набор для повторения.
Войдите, чтобы сохранять закладки, сложные вопросы и наборы для повторения.
Это полезно? Да Нет
Самое полезное по оценкам пользователей:
- What is ANT?
- Explain ANT functionality.
- Explain using ANT and give an small example.
- How to set Classpath in Ant script?
- How to set property file in Ant script?