Apache ANT 文件夹中不存在 Build.xml 文件
我想使用 AXIS2 独立部署 Web 服务,我既不想使用 servlet 容器,也不想使用 IDE。
我从 http://ant.apache.org/bindownload.cgi 下载 Apache Ant,但是下载的ant文件夹没有build.xml文件?
解决办法是什么?如何在不使用 Ant 的情况下部署我的 Web 服务???
I want to deploy webservices using AXIS2 standalone, I neither want to use servlet containers nor IDE.
I download Apache Ant from http://ant.apache.org/bindownload.cgi but the downloaded ant folder doesn't have build.xml file?
What is the solution? How can I deploy my webservices without using Ant???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有
build.xml
,因为它是二进制发行版。无需构建任何内容 您解压文件后,系统上就安装了 Ant。在 Windows 上,您需要调整%PATH%
环境变量并设置%ANT_HOME%
环境变量。实际上,您也需要对 Unix 和 Mac OS X 执行相同的操作。现在,如果您想要源分布,请转到源分布页。在那里,您将找到一个
build.xml
。使用 Ant 运行build.xml
,然后您将得到……嗯……Ant。Ant 用于将基于 Java 的项目编译为类文件、jar、wars、ears 和其他 Java 世界二进制文件。它可以部署,但您必须编写自己的
build.xml
才能做到这一点。我不确定你在问什么。您是否要求使用 Axis2 部署项目?我不是开发人员,但 Axis2 是您在构建 Java 项目时使用的东西,而不是部署工具本身。您使用 Axis2 创建基于 Web 的服务。
There's no
build.xml
because it's a Binary Distribution. There's nothing to build You unzip the file, and you have Ant on your system. On Windows, you'll need to adjust your%PATH%
environment variable and set up an%ANT_HOME%
environment variable. Actually, you need to do the same with Unix and Mac OS X too.Now, if you want a Source Distribution, go to the Source Distributions page. There, you will find a
build.xml
. Run thatbuild.xml
with Ant, and you get ...well... Ant.Ant is used to compile Java based projects into classfiles, jars, wars, ears, and other Java world binaries. It can deploy, but you'll have to write your own
build.xml
to do just that.I'm not sure what you're asking. Are you asking to deploy a project using Axis2? I'm not a developer, but Axis2 is something you use when building a Java project, and not a deployment tool itself. You use Axis2 to create web-based services.
这个想法是编写
build.xml
来构建您的 Web 服务项目。从 http://ant.apache.org/bindownload.cgi 你会得到一个可执行文件“蚂蚁”。
通过在命令行上运行
ant
,Ant 将根据build.xml
内容构建项目。The idea is to write your
build.xml
to build your webservice project.From http://ant.apache.org/bindownload.cgi you'll get an executable "ant".
By running
ant
on the command line, then Ant will build the project based onbuild.xml
content.