Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant for Servlets 3b - silly question

 
Mark Beattie
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hullo all,

This may be a silly question. I've searched the Cattle Drive for discussions about Ant but not much luck. So here goes:

I get the following message
C:\Java>ant all
'ant' is not recognized as an internal or external command,
operable program or batch file.

Does this mean I need to download and install Ant?

The Assignments are detailed and explicit about what is required so I thought Ant might already be on my system.
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I run the command ant all this is what I get:

C:\java>ant all
Buildfile: build.xml

init:

clean:
[delete] Deleting directory C:\java\build

initdirs:
[mkdir] Created dir: C:\java\build\classes
[mkdir] Created dir: C:\java\build\dist

compile:
[javac] Compiling 63 source files to C:\java\build\classes
[javac] Note: C:\java\src\java\com\javaranch\db\DBFacade.java uses or overr
des a deprecated API.
[javac] Note: Recompile with -deprecation for details.

war:
[war] Building war: C:\java\build\dist\videos.war
[war] Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)

build:

all:

BUILD SUCCESSFUL
Total time: 47 seconds
C:\java>


Did you copy the build.xml file and put it inside your java directory?
[ July 21, 2006: Message edited by: Carol Murphy ]
 
Carol Murphy
village idiot
Bartender
Posts: 1202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark, there is a forum devoted to ANT, and two links to ANT related stuff there.
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#ant
http://bobcat.webappcabaret.net/javachina/faq/ant_01.htm

Hope these help!
[ July 21, 2006: Message edited by: Carol Murphy ]
 
Marilyn de Queiroz
Sheriff
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Beattie:
Does this mean I need to download and install Ant?

Good point, Mark. I think it would be good to at least have a link to ant.apache.org from the assignment page. I don't know how we overlooked that detail.
 
Mark Beattie
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Carol and Marilyn.

I'll download Ant now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic