Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71908 invoked from network); 26 Oct 2005 15:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Oct 2005 15:30:18 -0000 Received: (qmail 77985 invoked by uid 500); 26 Oct 2005 15:30:10 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 77932 invoked by uid 500); 26 Oct 2005 15:30:09 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 77921 invoked by uid 99); 26 Oct 2005 15:30:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 08:30:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rhino1@sympatico.ca designates 209.226.175.54 as permitted sender) Received: from [209.226.175.54] (HELO tomts10-srv.bellnexxia.net) (209.226.175.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2005 08:30:07 -0700 Received: from smtp1.sympatico.ca ([65.95.133.232]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051026152943.QZYB26102.tomts10-srv.bellnexxia.net@smtp1.sympatico.ca> for ; Wed, 26 Oct 2005 11:29:43 -0400 Received: from 127.0.0.1 (AVG SMTP 7.1.361 [267.12.5/149]); Wed, 26 Oct 2005 11:29:47 -0400 Message-ID: <015801c5da42$193a8750$0d02a8c0@athlon> From: "Rhino" To: "Ant Users List" References: Subject: Re: where to get some programm examples Date: Wed, 26 Oct 2005 11:29:47 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=Windows-1252 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "wei wei" To: Sent: Wednesday, October 26, 2005 6:32 AM Subject: where to get some programm examples > Hello, > > I have one build.xml file. now i want to control the running of this ant > build.xml in java code. > > > > > > > > basedir="${temp.dir}"/> > > > > > > > > public static void main(String[] arg) { > Project project= new Project(); > File buildfile = new File("build.xml"); > ProjectHelperImpl helper = new ProjectHelperImpl(); > helper.parse(project,buildfile); > project.setProperty("name", "wert"); > project.executeTarget("hello"); > > then i got a very long error message, it seems like the application can not > find my ant api(.jar files). > does any one have this experience? > Thanks a lot. > Did you follow the instructions in the Ant manual when you installed Ant? (The manual for the current version of Ant is at http://ant.apache.org/manual/index.html; just click on "Installing Ant" in the index to see the full installation instructions.) If you have followed those instructions and are still having a problem, please provide the following information and you will have a better chance of getting useful help: - the error message you are getting - the version of Ant you are using - the operating system and version you are using - identify if you are using Ant in a standalone way or if you are using a version that has been integrated with an IDE like Eclipse. Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.361 / Virus Database: 267.12.5/149 - Release Date: 25/10/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org