Forums Register Login

Ant for Servlets 3b - silly question

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
Thanks Carol and Marilyn.

I'll download Ant now.
Every time you till, you lose 30% of your organic matter. But this tiny ad is durable:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1109 times.
Similar Threads
sql query
What Is the Best Way to Learn JSF Quickly?
Using Ant in Eclipse
ant 1.6.0 bin distribution not working
Pasting into a JTextArea
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:15:08.