version info in eclipse:
eclipse中的版本信息:
Apache Ant(TM) version 1.9.2 compiled on July 8 2013
help info in eclipse:
eclipse中的帮助信息:
no autoproxy argument
But when I use ant in the command-line,there is autoproxy argument.
但是当我在命令行中使用ant时,会出现autoproxy参数。
help info in command-line(ant 1.9.4):
-autoproxy Java1.5+: use the OS proxy settings
1 个解决方案
#1
The Eclipse Platform Ant Project exists independent of Eclipse as an Apache open source project and thus may not be feature-for-feature identical to the Ant command line.
Eclipse Platform Ant Project独立于Eclipse而作为Apache开源项目存在,因此可能不是与Ant命令行相同的功能特性。
(There is a small irony here, as the instructions for building Eclipse locally require you to run Ant from the command line with the -autoproxy option.)
(这里有一点小讽刺,因为本地构建Eclipse的指令要求您使用-autoproxy选项从命令行运行Ant。)
You might be able to get things to work with the <setproxy/>
Task, though I don't think this groks autoproxies.
你可能能够使用
You might be able to solve this by setting java.net.useSystemProxies
(which is all -autoproxy does, I understand) on the VM running Ant, or by setting -autoproxy
via the ANT_ARGS
environment variable. The latter is, I admit, hand-waving, as I have never added environment to tweak a plugin within Eclipse.
您可以通过在运行Ant的VM上设置java.net.useSystemProxies(我理解的全是-autoproxy)或通过ANT_ARGS环境变量设置-autoproxy来解决这个问题。我承认,后者是挥手,因为我从来没有添加环境来调整Eclipse中的插件。
#1
The Eclipse Platform Ant Project exists independent of Eclipse as an Apache open source project and thus may not be feature-for-feature identical to the Ant command line.
Eclipse Platform Ant Project独立于Eclipse而作为Apache开源项目存在,因此可能不是与Ant命令行相同的功能特性。
(There is a small irony here, as the instructions for building Eclipse locally require you to run Ant from the command line with the -autoproxy option.)
(这里有一点小讽刺,因为本地构建Eclipse的指令要求您使用-autoproxy选项从命令行运行Ant。)
You might be able to get things to work with the <setproxy/>
Task, though I don't think this groks autoproxies.
你可能能够使用
You might be able to solve this by setting java.net.useSystemProxies
(which is all -autoproxy does, I understand) on the VM running Ant, or by setting -autoproxy
via the ANT_ARGS
environment variable. The latter is, I admit, hand-waving, as I have never added environment to tweak a plugin within Eclipse.
您可以通过在运行Ant的VM上设置java.net.useSystemProxies(我理解的全是-autoproxy)或通过ANT_ARGS环境变量设置-autoproxy来解决这个问题。我承认,后者是挥手,因为我从来没有添加环境来调整Eclipse中的插件。