Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 78888 invoked from network); 15 Dec 2008 11:41:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2008 11:41:47 -0000 Received: (qmail 65962 invoked by uid 500); 15 Dec 2008 11:41:53 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 65921 invoked by uid 500); 15 Dec 2008 11:41:52 -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 65910 invoked by uid 99); 15 Dec 2008 11:41:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 03:41:52 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-ant-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 11:41:29 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LCBow-0004ag-61 for user@ant.apache.org; Mon, 15 Dec 2008 11:41:06 +0000 Received: from lichtenstein.sfb.uni-tuebingen.de ([134.2.147.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Dec 2008 11:41:06 +0000 Received: from qwizv9b02 by lichtenstein.sfb.uni-tuebingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Dec 2008 11:41:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: user@ant.apache.org From: Hendrik Maryns Subject: Re: [HELP] problem using antlr in ant Date: Mon, 15 Dec 2008 12:40:50 +0100 Lines: 156 Message-ID: References: <471EDE446D942746BAFEF042B8621F02255DE2@BLR-EC-MBX03.wipro.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1476663157FAF141576BF79B" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lichtenstein.sfb.uni-tuebingen.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; nl; rv:1.8.1.9) Gecko/20071114 SUSE/2.0.0.9-11.1 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org --------------enig1476663157FAF141576BF79B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, > On Dec 12, 2008, at 3:46 AM, > wrote: >=20 >> Hi Sunil, >> I found some queries posted by you on antlr tasks in ant mail archive= s. Why then not ask in the Ant mailing list, as Sunil did for you? >> I am facing issue while using antlr task inside ant build.xml. >> could you please give me some insight on how to go about? >> here are the details: >> I am trying to build a grammar file inside build.xml >> >> >> >> >> >> >> >> >> >> I am getting an error: >> >> >> build.xml:19: Could not create task or type of type: antlr. I see you are using ANTLR 2.7, which is rather old. I use ANTLR 3.1, but= you can probably adapt to your needs. I have the following in my build files: =3D=3D build.properties =3D=3D # ANTLR stuff antlrdir=3D${srcdir}/ANTLR grammar.name=3Dfsq parse.package=3Dde/uni_tuebingen/sfb/lichtenstein/formulas/parsing tool.options=3D-lib ${antlrdir} -o ${antlrdir} =3D=3D build.properties =3D=3D =3D=3D build.xml=3D=3D = As you can see, I didn=E2=80=99t manage to use the antlr3 target which ca= n be found on the internet. The antlr target from ant-tools should however work with ANTLR 2.7. Adapt the classpath line a= s appropriate. HTH, H. --=20 Hendrik Maryns http://tcl.sfs.uni-tuebingen.de/~hendrik/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ask smart questions, get good answers: http://www.catb.org/~esr/faqs/smart-questions.html --------------enig1476663157FAF141576BF79B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklGQkgACgkQBGFP0CTku6PKHgCgjiBKPCOfX3Uww6opVDHlO0fB dwEAnjuGc5ryoaVrYG1rwvd7B8yEIgYh =NXEs -----END PGP SIGNATURE----- --------------enig1476663157FAF141576BF79B--