Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 84114 invoked from network); 17 Mar 2009 00:50:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2009 00:50:50 -0000 Received: (qmail 99307 invoked by uid 500); 17 Mar 2009 00:50:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98786 invoked by uid 500); 17 Mar 2009 00:50:47 -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 98775 invoked by uid 99); 17 Mar 2009 00:50:47 -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 17:50:47 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.111.155 as permitted sender) Received: from [65.55.111.155] (HELO blu0-omc4-s16.blu0.hotmail.com) (65.55.111.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2009 00:50:38 +0000 Received: from BLU142-W30 ([65.55.111.137]) by blu0-omc4-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 16 Mar 2009 17:50:17 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_eeb3a0d4-b8a6-45e0-8171-4f3b4a030622_" X-Originating-IP: [71.232.86.84] From: Martin Gainty To: Ant Users List Subject: RE: Developing in Java with ANT Date: Mon, 16 Mar 2009 20:50:16 -0400 Importance: Normal In-Reply-To: <8d623a000903161426r80bfcadha95a90677b6cda09@mail.gmail.com> References: <8d623a000903161403p5375c497i3791b78eabceaf30@mail.gmail.com> <8d623a000903161426r80bfcadha95a90677b6cda09@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 17 Mar 2009 00:50:17.0857 (UTC) FILETIME=[576AEF10:01C9A69A] X-Virus-Checked: Checked by ClamAV on apache.org --_eeb3a0d4-b8a6-45e0-8171-4f3b4a030622_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ant runs in the Java VM so ANT is task of the JVM you can run 'ant' in a shell via Runtime.getRuntime.exec("ant.bat target")= =3B but in that case a JVM would be executing another JVM process I would suggest thinking about incorporating the necessary ANT taskdef clas= ses into an included jar so your desktop or web application can incorporate the= requisite functionality by adding that jar to your classpath HTH Martin=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality note= =20 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. This message is confidential and may be privileged. If you are not the inte= nded recipient=2C we kindly ask you to please inform the sender. Any unaut= horised dissemination or copying hereof is prohibited. This message serves = for information purposes only and shall not have any legally binding effect= . Given that e-mails can easily be subject to manipulation=2C we can not ac= cept any liability for the content provided. > Date: Mon=2C 16 Mar 2009 22:26:28 +0100 > Subject: Re: Developing in Java with ANT > From: davidnemer@gmail.com > To: user@ant.apache.org >=20 > Hello David and Martin=2C >=20 > Thank you for your answers. But=2C I was just wondering how can I do this= =2C run > ant=2C coding in JAVA. As I studied the Ant manual from Apache before=2C = I could > figure out how to run it in the command line=2C but I don't seem to be ab= le to > run ANT in Java coding. >=20 > So=2C is there a way to call the command ANT in Java coding? >=20 > -- > David Nemer >=20 > On Mon=2C Mar 16=2C 2009 at 10:14 PM=2C Martin Gainty wrote: >=20 > > David > > > > make sure your class gets on the classpath before you use it with ant e= .g. > > > > assume the java file is located in .\packageName\david.java > > javac .\packageName\david.java > > > > assume the new class is packaged in david.jar > > jar -cvf david.jar .\package\*.* > > > > ant -lib .\Path\To\david.jar -f build.xml > > > > HTH > > Martin > > ______________________________________________ > > Verzicht und Vertraulichkeitanmerkung / Disclaimer and confidentiality = note > > > > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empf= aenger sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte We= iterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht die= nt lediglich dem Austausch von Informationen und entfaltet keine rechtliche= Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koenn= en wir keine Haftung fuer den Inhalt uebernehmen. > > This message is confidential and may be privileged. If you are not the = intended recipient=2C we kindly ask you to please inform the sender. Any u= nauthorised dissemination or copying hereof is prohibited. This message ser= ves for information purposes only and shall not have any legally binding ef= fect. Given that e-mails can easily be subject to manipulation=2C we can no= t accept any liability for the content provided. > > > > > > > > > > > > > > > Date: Mon=2C 16 Mar 2009 22:03:43 +0100 > > > Subject: Developing in Java with ANT > > > From: davidnemer@gmail.com > > > To: user@ant.apache.org > > > > > > > > Hello Everyone=2C > > > > > > I'm really new to Ant=2C and I need some help=2C my task is to code i= n JAVA a > > > program to checkout a version of a open source project=2C 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=2C they already have an XML file to build the > > project. > > > So once I have checked out the Project=2C all I need to do I to run a= nt to > > > build the project. But=2C how can I code a way to run Ant to build th= is > > > project? ( I need to code that in Java... I can't just go to my comma= nd > > line > > > and run Ant.) > > > > > > Thank you so much in advance > > > -- > > > David Nemer > > > > ------------------------------ > > Hotmail=AE is up to 70% faster. Now good news travels really fast. Find= out > > more. > > _________________________________________________________________ Express your personality in color! Preview and select themes for Hotmail=AE= .=20 http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=3DTXT_MS= GTX_WL_HM_express_032009#colortheme= --_eeb3a0d4-b8a6-45e0-8171-4f3b4a030622_--