File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes asant problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "asant problem" Watch "asant problem" New topic

asant problem

Pradyut Bhattacharya
Ranch Hand

Joined: Aug 12, 2004
Posts: 63
whenever i give "asant build" command in the command line i get the message

the required contents in the targets.xml file are: -

i tried a lot on the line "<javac srcdir="src" destdir="${build}" >"
on the destdir parameter but on no good results

any help

Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
The ${C:/Sun/AppServer} property has not been set.
Use ant -v

Tony Morris
Java Q&A (FAQ, Trivia)
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

I'm moving this to the Ant forum, because I believe Pradyut means "ant build" not "asant build".

Please post your replies there, thanks!
Sarah Rosie

Joined: Dec 02, 2004
Posts: 3
From the J2EE tutorial:

"To run the asant scripts, you must set common build properties in the file <INSTALL>/j2eetutorial14/examples/common/ as follows:

Set the j2ee.home property to the location of your Application Server installation. The build process uses the j2ee.home property to include the libraries in <J2EE_HOME>/lib/ in the classpath. All examples that run on the Application Server include the J2EE library archive--<J2EE_HOME>/lib/j2ee.jar--in the build classpath. Some examples use additional libraries in <J2EE_HOME>/lib/ and <J2EE_HOME>/lib/endorsed/; the required libraries are enumerated in the individual technology chapters. <J2EE_HOME> refers to the directory where you have installed the Application Server or the J2EE 1.4 SDK.


Note: On Windows, you must escape any backslashes in the j2ee.home property with another backslash or use forward slashes as a path separator. So, if your Application Server installation is C:\Sun\AppServer, you must set j2ee.home as follows:

j2ee.home = C:\\Sun\\AppServer


I agree. Here's the link:
subject: asant problem
It's not a secret anymore!