简体   繁体   English

Eclipse 是否将 ant 与自己的发行版一起发货?

[英]Does Eclipse ship ant with its own distribution?

First time using Apache Ant (I'm excited and overwhelmed at the same time.) for automating a Java app.第一次使用 Apache Ant(我既兴奋又不知所措。)自动化 Java 应用程序。

I did not go to the ant website and download ant directly.没有go到ant网站直接下载ant。 Rather, I'm using the standard plugin that ships with Eclipse.相反,我使用的是 Eclipse 附带的标准插件。 From Eclipse, I can run test build.xml projects perfectly.从 Eclipse,我可以运行测试构建。xml 项目完美。 But when I go to run ant directly off the command-line, Windows doesn't recognize it as a recognized command.但是当我 go 直接从命令行运行 ant 时,Windows 不会将其识别为可识别的命令。

This leads me to believe that I either do not have ant installed, or I have not configured it properly (at all).这让我相信我要么没有安装 ant,要么我没有正确配置它(根本)。 If it's not installed, then why do these build.xml scripts work when I fire them inside of Eclipse?如果没有安装,那么为什么当我在 Eclipse 中触发这些 build.xml 脚本时它们会起作用? Does Eclipse ship with its own distrib of ant that isn't accessible from the cmd line? Eclipse 是否附带其自己的 ant 发行版,该发行版无法从 cmd 行访问?

And if it's just a config issue, what do I need to do in order to get ant to run a buildscript of my own flavor?如果这只是一个配置问题,我需要做什么才能让 ant 运行我自己风格的构建脚本?

I want to start using Apache Ivy and in order to run the demos I first need ant up and running from the command line.我想开始使用 Apache Ivy,为了运行演示,我首先需要 ant 启动并从命令行运行。

Thanks for any help or insight:-)感谢您的帮助或见解:-)

Does Eclipse ship with its own distrib of ant that isn't accessible from the cmd line? Eclipse 是否附带其自己的 ant 发行版,该发行版无法从 cmd 行访问?

Essentially, yes.本质上,是的。 Eclipse bundles the core Ant runtime plus its own extensions and integration, but it's private to the Eclipse installation. Eclipse 捆绑了核心 Ant 运行时以及它自己的扩展和集成,但它是 Eclipse 安装私有的。

If you want to run the builds from outside of Eclipse, you need to download and install the full distribution of Ant.如果要从 Eclipse 外部运行构建,则需要下载并安装 Ant 的完整分发版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM