From ae6949f5aa125986f1b5c778d97249dfcec32e6e Mon Sep 17 00:00:00 2001 From: bwalding Date: Wed, 3 Sep 2003 02:20:53 +0000 Subject: [PATCH] Allow antlr plugin users to generate files to a location other than ${maven.build.dir}/antlr git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113942 13f79535-47bb-0310-9956-ffa450edef68 --- antlr/plugin.jelly | 6 +++--- antlr/plugin.properties | 1 + antlr/xdocs/changes.xml | 3 +++ antlr/xdocs/properties.xml | 8 +++++++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/antlr/plugin.jelly b/antlr/plugin.jelly index c2c7543e..18faab8c 100644 --- a/antlr/plugin.jelly +++ b/antlr/plugin.jelly @@ -11,7 +11,7 @@ - + @@ -21,7 +21,7 @@ + location="${maven.antlr.target.dir}"/> @@ -30,7 +30,7 @@ ${maven.antlr.grammars} - + ${grammar} diff --git a/antlr/plugin.properties b/antlr/plugin.properties index 2dfceb3b..2608e6ef 100644 --- a/antlr/plugin.properties +++ b/antlr/plugin.properties @@ -1 +1,2 @@ maven.antlr.src.dir=MAVEN_ANTLR_SRC_DIR_NOT_SET +maven.antlr.target.dir=${maven.build.dir}/antlr diff --git a/antlr/xdocs/changes.xml b/antlr/xdocs/changes.xml index bd5e801d..90f19e53 100644 --- a/antlr/xdocs/changes.xml +++ b/antlr/xdocs/changes.xml @@ -19,6 +19,9 @@ Added documentation for navigation, changes, properties and goals + + Can now use maven.antlr.target.dir to set where generated files are placed. Defaults to ${maven.build.dir}/antlr + diff --git a/antlr/xdocs/properties.xml b/antlr/xdocs/properties.xml index e5687617..8c1dc516 100644 --- a/antlr/xdocs/properties.xml +++ b/antlr/xdocs/properties.xml @@ -26,7 +26,13 @@ No Must be set to allow antlr processing to happen. - FIXME: It appears this property isn't used? + + + + maven.antlr.target.dir + Yes - defaults to ${maven.build.dir}/antlr + + Defines where antlr will process .g files to.