Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 64808 invoked from network); 16 Mar 2009 21:14:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 21:14:00 -0000 Received: (qmail 42112 invoked by uid 500); 16 Mar 2009 21:13:57 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42076 invoked by uid 500); 16 Mar 2009 21:13:57 -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 42065 invoked by uid 99); 16 Mar 2009 21:13:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 14:13:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 74.125.92.145 as permitted sender) Received: from [74.125.92.145] (HELO qw-out-1920.google.com) (74.125.92.145) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 21:13:50 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1001553qwc.10 for ; Mon, 16 Mar 2009 14:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7sQf4jRPXd0xo2VlXWNxJ6O7+FS4a8HeNw/BXRpJ2Cc=; b=DKFfBocaK8W0qc+wJld44IMMZsGYA3azGeC3jBBvzQn6xQjdxT+htLNtS6xn/F8Oie KDLFuX3wdn5e1Xe6L3cHJss+7adtfaV1MXhDT0rttGtxBJwO90OvodQnKu5nlS821q3+ 8eqGwejyErVZrpDk2rxjRcReHs38eDBzcbrFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=H57psuAApJlDwNysLiKoylmon2J/Jl39l94kBzu9tsgo+SKcUnr7d4Zo7YjTsYjQEI 3c5CIV+ITXq2fQTrVdn7Lv/azlru7B0U2ABsN0Io2TeWPc1LotU0/xzOSsz6o9E+hJKx FypUb+ONnWDrvZUlhzZiNWhVjUvWbaa92Z050= MIME-Version: 1.0 Received: by 10.224.11.77 with SMTP id s13mr6298459qas.4.1237238009643; Mon, 16 Mar 2009 14:13:29 -0700 (PDT) In-Reply-To: <8d623a000903161403p5375c497i3791b78eabceaf30@mail.gmail.com> References: <8d623a000903161403p5375c497i3791b78eabceaf30@mail.gmail.com> Date: Mon, 16 Mar 2009 17:13:29 -0400 Message-ID: Subject: Re: Developing in Java with ANT From: David Weintraub To: Ant Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On most systems, there is a shell script that launches Ant for you, so you can launch it from the command line: $ ant You can also specify a target: $ ant jar And, if run this: $ ant -projecthelp it may even print out all the targets your build.xml file contains. You need to install Ant, and make sure that the shell script (or Windows batch script) that comes with Ant is in your PATH. Most of the time, this is pretty automatic when you do the install. Sometimes, you have to do some tweaking. All you need is a Java 1.5 or greater version on your system, you have the environment variable JAVA_HOME set to the Java directory (Ant will try to figure this out if it isn't set), the Ant installation, and the Ant shell script or the Ant Windows Batch script. I suggest you get the book Ant in Action from Manning Press. If you're technically savvy, you could try to learn Ant from the Apache Ant manual, but that can be a bit confusing. The Ant manual is at http://ant.apache.org/manual/index.html. On Mon, Mar 16, 2009 at 5:03 PM, David Nemer wrote: > Hello Everyone, > > I'm really new to Ant, and I need some help, my task is to code in JAVA a > program to checkout a version of a open source project, compile it and run > the test script which is in ANT. > > I'm working on the Ant-Doxygen Project (but it could be any project). > http://sourceforge.net/projects/ant-doxygen > > I'm already successful with coding the "checkout a version of a repository" > part. > > In Ant-Doxygen project, they already have an XML file to build the project. > So once I have checked out the Project, all I need to do I to run ant to > build the project. But, how can I code a way to run Ant to build this > project? ( I need to code that in Java... I can't just go to my command line > and run Ant.) > > Thank you so much in advance > -- > David Nemer > -- -- David Weintraub qazwart@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org