简体   繁体   中英

Ant property file reference another property file

I have an ant build that has a main build.properties file. One of the projects that is built has a their own property file. I am wondering if it is possible to reference one of the properties defined in the main file in the secondary file.

The answer is yes, assuming that the buildfile of the sub project loads the main build.properties file, and does so before it loads its own properties file.

If both of those are true, then the properties file in the sub project can reference properties from the main build.properties.

I answered a similar question here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM