How are you invoking ant? If you type
ant build at the command prompt, you will likely receive the message 'Target `build' does not exist in this project.' because the default build.xml file does not contain the line <target name="build">. You should be invoking ant by simply typing ant at the command prompt. Ant will search the current directory for a file called build.xml by default, parse any <target> tags it finds, resolve any dependencies which may exist among those targets, and execute those targets. Hope this helps. --dave "AUBUCHON, KEVIN (SBCSI)" To: Ant user list <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> cc: (bcc: David Bailey/Lawson) Subject: RE: 'BUILD FAILED' 11/25/2002 02:47 PM Please respond to "Ant Users List" I just realized 'build failed' is a generic message. Here are some lines from the log file: BUILD FAILED Target `build' does not exist in this project. void org.apache.tools.ant.Project.tsort(java.lang.String, java.util.Hashtable, java.util.Hashtable, java.util.Stack, java.util.Vector) java.util.Vector org.apache.tools.ant.Project.topoSort(java.lang.String, java.util.Hashtable) void org.apache.tools.ant.Project.executeTarget(java.lang.String) void org.apache.tools.ant.Project.executeTargets(java.util.Vector) void org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) void org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) void org.apache.tools.ant.Main.main(java.lang.String[]) java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) void com.sun.launcher.Launcher.main(java.lang.String[]) Total time: 1 second Thanks for your help, Kevin -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 2:38 PM To: [EMAIL PROTECTED] Cc: AUBUCHON, KEVIN (SBCSI) Subject: Re: 'BUILD FAILED' Kevin Look at the top of build.xml and take a look at the property called 'build' Regards Martin Gainty ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. _____________GMT-5___________________ >From: "AUBUCHON, KEVIN (SBCSI)" >Reply-To: "Ant Users List" >To: [EMAIL PROTECTED] >Subject: 'BUILD FAILED' >Date: Mon, 25 Nov 2002 14:34:46 -0600 >MIME-Version: 1.0 >Received: from nagoya.betaversion.org ([192.18.49.131]) by mc4-f10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 25 Nov 2002 12:35:05 -0800 >Received: (qmail 19784 invoked by uid 97); 25 Nov 2002 20:35:55 -0000 >Received: (qmail 19772 invoked by uid 98); 25 Nov 2002 20:35:54 -0000 >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm >Precedence: bulk >List-Unsubscribe: >List-Subscribe: >List-Help: >List-Post: >List-Id: "Ant Users List" >Delivered-To: mailing list [EMAIL PROTECTED] >X-Antivirus: nagoya (v4218 created Aug 14 2002) >Message-ID: <[EMAIL PROTECTED] > >X-Mailer: Internet Mail Service (5.5.2655.15) >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >Return-Path: [EMAIL PROTECTED] >X-OriginalArrivalTime: 25 Nov 2002 20:35:05.0796 (UTC) FILETIME=[23619840:01C294C2] > >Hello, > >trying my first project with Ant (Windows NT, jdk 1.3, Tomcat 4.0). > >I'm trying the simple build.xml file found in the Ant documentation. I get >the followign error message: > >BUILD FAILED > >Target `build' does not exist in this project. > >Any ideas what 'build' refers to? I don't see any compiled java files, my >/build directory has not been created. > >Kevin Aubuchon >Contractor >One SBC Center >314-331-9848 > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: _____ Help STOP SPAM with the new MSN 8 <http://g.msn.com/8HMKEN/2016> and get 2 months FREE* -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>