build.properties中的“\”是什么意思?

What does the "\" mean in build.properties?

这可能是一个非常 basic/trivial 的问题,但我似乎无法得到很好的解释。

我有一个 build.xml,它使用了一个 build.properties 文件,并且类路径设置的设置中提到了类似的内容...

# reference the base directory of the project source
project.base=..

# All files generated during a build are stored here
working.dir=/tmp/HelloWorld/working

# final build artifacts are stored here
dist.dir=/tmp/HelloWorld/dist

# HelloWorld shared library project
project.shared=${project.base}/sharedlib

# HelloWorld jar library directory
lib.dir=${project.shared}/lib

# Compile jars are directly referenced by application code.
# These jars are included in the javac compiler classpath.
# Base directory of these jars are ${lib.dir}
schema.compile.jars=\
thirdparty/jaxws/jaxb-api.jar,\

schema.precompile.jars 中上面的“\”是做什么用的?构建如何知道基本目录将是 ${lib.dir}?

问候 阿里.

当“\”是一行的最后一个字符时,表示该行已拆分为多行。这通常是用长线完成的。下一行是以“\”结尾的行的延续。如果你愿意,你可以删除“\”加上后面的换行符来连接两行,它们包含的信息不会改变。

关于你的第二个问题,你指的是最后一行评论吗?在 build.xml 某处有对 ${schema.compile.jars} 的引用。在那个地方 ${lib.dir} 可能也用作基本目录的参数。