我从某个自定义位置调用Ant,而不是从“本地”安装位置
在我的系统中(
/usr/share/ant/bin/ant
). 当我回响
${ant.core.lib}
属性,我看到Ant从/usr/share/lib获取它。
例如:生成.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<project name="foo" basedir=".">
<echo message="ant.core.lib: ${ant.core.lib}"/>
</project>
我看到的是:
$ /some/other/location/apache/apache-ant-1.9.9/bin/ant
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Buildfile: /home/username/tmp/build.xml
[echo] ant.core.lib: /usr/share/java/ant/ant.jar
即使传递一个备用库位置(另一个蚂蚁.jar生活)显然我仍然看到相同的:
$ /some/other/location/apache/apache-ant-1.9.9/bin/ant -lib /some/other/location/apache/apache-ant-1.9.9/lib
(same output as before)
Ant是如何决定如何设置
使用蚂蚁.jar从别的地方来的?