linux - 属性文件中的值未从 linux 加载到 ant 中

标签 linux ant properties

我正在从 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/

相关文章:

java - Netbeans - .properties 文件默认编码 |奇怪的行为

linux - tcp 连接在 close_wait 中挂起并且属于 pid 1

java - 仅构建 MANIFEST.MF 的 Ant 任务

java - 在 Eclipse 中微调 FindBugs ant 任务

java - Spring MVC App index.jsp 未在浏览器中显示,HTTP 404 结果

iphone - - (void)add<名称>对象 : function

分配相同的值时不调用 c# 属性 setter

python - 符号链接(symbolic link)如何在 Linux 中工作

linux - x64 NASM 汇编程序在程序开始时显示段错误

c - 解析文本文件时出现段错误