eclipse build.properties 和 build.xml
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3620643/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
build.properties and build.xml
提问by sean
anyone can tell me the ant build (internal) procedure, and how build.properties info is used?
谁能告诉我 ant 构建(内部)程序,以及如何使用 build.properties 信息?
by the way, I am opening a project with build.properties -- but the projects I was working on did not seem to have such a file (newbie question) can someone give me an intro? is that an eclipse generated file?
顺便说一句,我正在打开一个带有 build.properties 的项目——但我正在处理的项目似乎没有这样的文件(新手问题)有人可以给我介绍一下吗?那是eclipse生成的文件吗?
回答by Colin Hebert
The build.property can override your properties in your build.xml without having to modify it.
build.property 可以覆盖 build.xml 中的属性,而无需修改它。
Building with Ant: Introductionstates :
使用 Ant 构建:介绍指出:
The construct is usually used to include a file called build.properties. This is a convention used so that you can override default values for your local build environment, without having to modify build.xml (which may, after all, be a shared file, under version control). This means that build.properties should probably not be under version control (add it to .cvsignore under CVS).
该构造通常用于包含名为 build.properties 的文件。这是使用的约定,以便您可以覆盖本地构建环境的默认值,而无需修改 build.xml(毕竟它可能是一个共享文件,受版本控制)。这意味着 build.properties 可能不受版本控制(将其添加到 CVS 下的 .cvsignore)。
Resources :
资源 :