【发布时间】:2014-04-20 01:44:38
【问题描述】:
我将 Eclipse Kepler 与 IvyDE 一起使用。我已将 Eclipse 中的 Ivy 设置路径(Window -> Preferences -> Ivy -> Settings)设置为我的设置文件(http://myserver.com/ivy-settings.xml)。它工作正常。但是我也在 Eclipse 中使用了一些 Ant 脚本,我需要这些脚本来访问存储库。为此,我需要在我的 Ant 脚本中调用以下任务
<ivy:settings url="http://myserver.com/ivy-settings.xml"/>
我是否可以删除该硬编码的 url,并将设置指向使用 IvyDE 使用的相同 URL?
谢谢
【问题讨论】:
-
环境变量?
-
我尝试创建一个值为 myserver.com/ivy-settings.xml 的字符串替换 ivy_settings_xml_url,并使用 ${ivy_settings_xml_url} 作为 ivy_settings 路径,但我收到一条错误消息“The Ivy settings file 'file:/C: /eclipse-kepler/http:/vulcan/ivy-settings.xml' 找不到”,所以它不起作用。