Ant script use two .properties file?

I want to know if it is possible to get an ant script to link to 2 different files at .propertiesonce, and if so, how to do it.

Assume that the properties contained in the two files .propertiesare mutually exclusive, i.e. the same property will not be displayed twice.

Thank!

+3
source share
2 answers

In addition to Ash answer .

You can use another attribute of the prefixtask property, for example

<property file="file1.properties" prefix="file1"/>
<property file="file2.properties" prefix="file2"/>

, , script. , test, , , file1.test file2.test.

+7

<property file="..."> ant script ( - , ?). , ant , , "".

. http://ant.apache.org/manual/Tasks/property.html .

+8
source

Source: https://habr.com/ru/post/1725801/


All Articles