aspose file tools*
The moose likes Cattle Drive and the fly likes Ant for Servlets 3b - silly question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Ant for Servlets 3b - silly question" Watch "Ant for Servlets 3b - silly question" New topic
Author

Ant for Servlets 3b - silly question

Mark Beattie
Greenhorn

Joined: Mar 30, 2006
Posts: 26
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

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Mar 15, 2001
Posts: 1195
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

Joined: Jul 22, 2000
Posts: 9046
    
  10
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.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Mark Beattie
Greenhorn

Joined: Mar 30, 2006
Posts: 26
Thanks Carol and Marilyn.

I'll download Ant now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant for Servlets 3b - silly question