From 13355064e679198a0b8212779599eb888739a9bd Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Tue, 1 Apr 2003 14:44:00 +0000
Subject: [PATCH] Recompile grammar if supergrammar has changed.
PR: 12961
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274364 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 3 +++
docs/manual/OptionalTasks/antlr.html | 16 ++++++++++++----
.../tools/ant/taskdefs/optional/ANTLR.java | 16 ++++++++++++----
3 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 0860cb681..c0b09c6d2 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -76,6 +76,9 @@ Fixed bugs:
* The filter sometimes removed parts of string
constants. Bugzilla Report 17441.
+* will now recompile your grammar if the supergrammar has
+ changed. Bugzilla Report 12691.
+
Other changes:
--------------
* Shipped XML parser is now Xerces 2.4.0
diff --git a/docs/manual/OptionalTasks/antlr.html b/docs/manual/OptionalTasks/antlr.html
index fdb20badd..1de0f982f 100644
--- a/docs/manual/OptionalTasks/antlr.html
+++ b/docs/manual/OptionalTasks/antlr.html
@@ -21,10 +21,11 @@
the grammar file.
- This task only invokes ANTLR if the grammar file is newer than the generated
- files.
+ This task only invokes ANTLR if the grammar file (or the
+ supergrammar specified by the glib attribute) is newer than the
+ generated files.
-
+
Antlr 2.7.1 Note:
To successfully run ANTLR, your best option is probably to build the whole
jar with the provided script mkalljar and drop the resulting jar (about 300KB)
@@ -33,6 +34,13 @@
to your classpath as described in ANTLR install.html document.
+Antlr 2.7.2 Note:
+
+ Instead of the above, you will need antlrall.jar that can be created
+ by the antlr-all.jar target of the Makefile provided with the
+ download.
+
+
Parameters
@@ -170,7 +178,7 @@ href="../using.html#arg">Command line arguments.
-Copyright © 2000-2002 Apache Software Foundation. All rights
+
Copyright © 2000-2003 Apache Software Foundation. All rights
Reserved.