开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜