Eclipse ==> Ant 插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3373429/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse ==> Ant plugin?
提问by aryaxt
Can anybody please tell me how i can add the ant plugin to eclipse? Thanks
谁能告诉我如何将 ant 插件添加到 eclipse 中?谢谢
回答by Daniel Sokolowski
Ant core is part of every Eclipse install but not the UI, that's part of the JDT package. However we can install the Ant UI (view + editor) component directly using Eclipse's P2 director through the command line as follows:
Ant 核心是每个 Eclipse 安装的一部分,但不是 UI,它是 JDT 包的一部分。但是,我们可以通过命令行直接使用 Eclipse 的 P2 控制器安装 Ant UI(视图 + 编辑器)组件,如下所示:
$ cd <your eclipse install folder> $ ./eclipse -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/kepler -installIU org.eclipse.ant.ui Installing org.eclipse.ant.ui 3.5.400.v20130514-1341. Operation completed in 19162 ms.
Note: make sure you adjust the '-repository' argument in the command to match your Eclipse release. The above will install the version from the Kepler release, even when running with Luna or Mars. If you accidentally installed the wrong version, uninstall it first by replacing '-installIU' with '-uninstallIU'. Otherwise installing the newer version will fail.
注意:确保调整命令中的“-repository”参数以匹配您的 Eclipse 版本。以上将安装 Kepler 版本中的版本,即使在运行 Luna 或 Mars 时也是如此。如果您不小心安装了错误的版本,请先将“-installIU”替换为“-uninstallIU”以将其卸载。否则安装较新版本将失败。
回答by Goibniu
Ant is integrated into eclipse. If you go to the Window menu, ant should be one of the views available to open.
Ant 集成到 eclipse 中。如果您转到“窗口”菜单,则 ant 应该是可以打开的视图之一。
回答by Parth Godhani
First Open Eclipse...then Follow steps...
首先打开Eclipse...然后按照步骤...
- Go to Help --> Install New Software...
- You find Field ... Work With ... Paste Below Link and Press Enter... http://www.apache.org/dist/ant/ivyde/updatesite
Now You Got : 1. Apache Ivy library and 2. Apache IvyDE Eclipse plugins ... choose select all option.
click Next and Agree and Finish
- 转到帮助 --> 安装新软件...
- 您找到 Field ... 使用 ... 粘贴到链接下方并按 Enter ... http://www.apache.org/dist/ant/ivyde/updatesite
现在你得到了:1. Apache Ivy 库和 2. Apache IvyDE Eclipse 插件...选择全选选项。
单击下一步并同意并完成
Enjoy Ant Apache Plugin...
享受 Ant Apache 插件...
回答by AnkitSingh
follow following steps -
按照以下步骤 -
- download latest binaries file of ant form http://ant.apache.org
- Unzip and place your workstation
- Create a new environment variable called ANT_HOME = E:\apache-ant-1.8.2
- Add E:\apache-ant-1.8.2\bin in PATH in environment variable
- check on cmd ant -version
- 下载 ant 形式的最新二进制文件http://ant.apache.org
- 解压缩并放置您的工作站
- 创建一个名为 ANT_HOME = E:\apache-ant-1.8.2 的新环境变量
- 在环境变量的PATH中添加E:\apache-ant-1.8.2\bin
- 检查 cmd ant -version
回答by hatem
it not antthat is installed by default with eclipse but the plugin of ant that latte you use ant directly from your idin this Cass eclipse so ant must be present in your system so the pugin can use it to install ant in Ubuntuuse this command in a terminal sudo apt-get install ant
它不是默认情况下随 eclipse 安装的 ant,而是ant的插件,您在此 Cass eclipse 中直接从您的 id 使用 ant,因此 ant 必须存在于您的系统中,以便 pugin 可以使用它 在 Ubuntu 中安装 ant使用此命令在终端 sudo apt-get install ant