我正在从 Linux 机器上执行 ant build。整个在 Windows 中工作正常。 但在 Linux 中,属性文件中的值不会被加载。
我正在使用命令 ant -Dpropertyfile=configurable.properties build 并且也在使用
属性文件 = "build.properties"
它不返回任何值。
此外,从 Windows 和 Linux 执行 ant build 有什么区别吗? 请提供您的建议。
最佳答案
加载属性文件的 Ant 命令行选项是 -propertyfile
。前面没有-D
,后面也没有等号:
ant -propertyfile configurable.properties
关于linux - 属性文件中的值未从 linux 加载到 ant 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20138779/