我正在从 Linux 机器上执行 ant build。整个在 Windows 中工作正常。 但在 Linux 中,属性文件中的值不会被加载。
我正在使用命令 ant -Dpropertyfile=configurable.properties build 并且也在使用
属性文件 = "build.properties"
它不返回任何值。
此外,从 Windows 和 Linux 执行 ant build 有什么区别吗? 请提供您的建议。
请您参考如下方法:
加载属性文件的 Ant 命令行选项是 -propertyfile。前面没有-D,后面也没有等号:
ant -propertyfile configurable.properties
