Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 8310 invoked from network); 10 Jun 2010 11:42:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 11:42:06 -0000 Received: (qmail 83396 invoked by uid 500); 10 Jun 2010 11:42:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 83126 invoked by uid 500); 10 Jun 2010 11:42:03 -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 83118 invoked by uid 99); 10 Jun 2010 11:42:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 11:42:02 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.111.154 as permitted sender) Received: from [65.55.111.154] (HELO blu0-omc4-s15.blu0.hotmail.com) (65.55.111.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 11:41:55 +0000 Received: from BLU142-W3 ([65.55.111.136]) by blu0-omc4-s15.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 10 Jun 2010 04:41:34 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_44777cbb-d987-48b2-8911-71b53fd63a98_" X-Originating-IP: [71.232.74.24] From: Martin Gainty To: Ant Users List Subject: RE: Problems with ANTLR Date: Thu, 10 Jun 2010 07:41:33 -0400 Importance: Normal In-Reply-To: <28835592.post@talk.nabble.com> References: <8d623a000904281518tdb97ff6j6de7ff807af020f8@mail.gmail.com> <8d623a000904291617i1c945f0ej2ad0af2bb2569f98@mail.gmail.com> <52BD14DC0EC59C46ADE90599784266A50D2CE2D4DB@MX034ZED0001.TIFDOM.COM> <23451031.post@talk.nabble.com>,<28835592.post@talk.nabble.com> MIME-Version: 1.0 X-OriginalArrivalTime: 10 Jun 2010 11:41:34.0068 (UTC) FILETIME=[E08B0B40:01CB0891] X-Virus-Checked: Checked by ClamAV on apache.org --_44777cbb-d987-48b2-8911-71b53fd63a98_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Good Afternoon =20 please download antlr3-task.zip source from http://www.antlr.org/share/1169= 924912745/antlr3-task.zip=20 unzip/uncompress to temp folder in org.apache.tools.ant.antlr.ANTLR3.java change public ANTLR3() { commandline.setVm(JavaEnvUtils.getJreExecutable("java"))=3B //commandline.setClassname("org.antlr.Tool")=3B /* there is no org= .antlr.Tool class */ commandline.setClassname("antlr.Tool")=3B fileUtils =3D FileUtils.getFileUtils()=3B } recompile place org.apache.tools.ant.antlr.ANTLR3 in classpath =20 contents of ./classes/org/apache/tools/ant/ant/antlr/antlib.xml (first antl= ib.xml in classpath) =20 and snippet from build.xml test test harness (from antlr3-task/simplecTreeP= arser.tp): =20 =20 ant -debug SimpleC=20 will explain the workings =20 Juergen can you correct the codebase for antlr.Tool to refactor to org.antl= r.Tool so org.apache.tools.ant.antlr.ANTLR3 test harness runs correctly w/o= modification from above? =20 Vielen Danke=2C Martin =20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung 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. =20 > Date: Wed=2C 9 Jun 2010 13:40:22 -0700 > From: nlaparo@yahoo.com > To: user@ant.apache.org > Subject: RE: Problems with ANTLR >=20 >=20 > 1) I downloaded the antlr3-task.zip today from the antlr home page. > 2) In the zip is a jar called antlr3_task.jar > 3) I copied antlr3_task.jar to my eclipse ant plugin lib directory=2C > C:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib > 4) I put this in my build.xml: > target=3D"${src.etc.dir}/parser/catos.g" > outputdirectory=3D"${target.gen.java.dir}/${target.antlr.parser.dir}"> > > >=20 > 4) When I build I get: > BUILD FAILED > C:\workspace\ess-networking\build.xml:41: Problem: failed to create task = or > type antlib:org/apache/tools/ant/antlr:antlr3 > Cause: The name is undefined. > Action: Check the spelling. > Action: Check that any custom tasks/types have been declared. > Action: Check that any / declarations have taken pla= ce. > No types or tasks have been defined in this namespace yet >=20 > This appears to be an antlib declaration.=20 > Action: Check that the implementing library exists in one of: > -C:\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib > -C:\Documents and Settings\nlaparo\.ant\lib > -a directory added on the command line with the -lib argument >=20 > # wrote: > >=20 > > Hi=2C > >=20 > > the ant-lib for the antlr3 task can be downloaded from here:=20 > > http://antlr.org/share/1169924912745/antlr3-task.zip > > A short description of it's usage is enclosed in the zip-archive > > (antlr3-task.htm or antlr3-task.doc). > > Try the examples contained in the zip-archive. There is also an example= on > > how to use the antlr3 task for ant in netbeans. > > If you still have questions=2C I will try to answer them. > >=20 > > Kind regards=2C J=FCrgen > >=20 >=20 > --=20 > View this message in context: http://old.nabble.com/Problems-with-ANTLR-t= p23287211p28835592.html > Sent from the Ant - Users mailing list archive at Nabble.com. >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@ant.apache.org > For additional commands=2C e-mail: user-help@ant.apache.org >=20 =20 _________________________________________________________________ The New Busy is not the too busy. Combine all your e-mail accounts with Hot= mail. http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultiaccount&ocid=3DP= ID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4= --_44777cbb-d987-48b2-8911-71b53fd63a98_--