简体   繁体   English

Spring Application Ant构建失败

[英]Spring application ant build fails

I am very new to java and spring. 我对java和spring非常陌生。 I was trying out my first ever application in spring. 我在春天尝试了我的第一个应用程序。 I followed this tutorial http://www.ibm.com/developerworks/opensource/tutorials/os-ag-springframe2/section6.html 我遵循了本教程http://www.ibm.com/developerworks/opensource/tutorials/os-ag-springframe2/section6.html

I am unable to build using ant. 我无法使用蚂蚁建立。 I get this error when I try to build. 尝试构建时出现此错误。

deepak@deepak-laptop:~/geronimo-tomcat7-javaee6-3.0-M1/workspace/phonebook$ ant dist
Buildfile: build.xml does not exist!
Build failed

There is no where in that tutorial the author has mentioned to create build.xml file. 作者在该教程中没有提到创建build.xml文件的位置。 As a new bie I guess 'build.xml' is a file which ant generates. 作为一个新手,我猜“ build.xml”是蚂蚁生成的文件。

Help me get through this step. 帮助我完成此步骤。 Thanks in advance. 提前致谢。

build.xml is the file which tells Ant what to do. build.xml是告诉Ant做什么的文件。 It won't work without it. 没有它就无法工作。 You must've missed something in the tutorial, since it's core to how Ant works. 您必须错过本教程中的某些内容,因为它是Ant工作原理的核心。

build.xml is supplied in the download for the tutorial. 该教程的下载内容中提供了build.xml Perhaps you've deleted it by mistake? 也许您误删了它?

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

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