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
This commit is contained in:
bwalding
2003-09-03 02:20:53 +00:00
parent 69f7a52cc1
commit ae6949f5aa
4 changed files with 14 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
<goal name="antlr:prepare-filesystem"
description="Make any necessary directories for antlr processing">
<j:if test="${!antlrSrcDir.equals('MAVEN_ANTLR_SRC_DIR_NOT_SET')}">
<ant:mkdir dir="${maven.build.dir}/antlr"/>
<ant:mkdir dir="${maven.antlr.target.dir}"/>
</j:if>
</goal>
@@ -21,7 +21,7 @@
<j:if test="${!antlrSrcDir.equals('MAVEN_ANTLR_SRC_DIR_NOT_SET')}">
<ant:path id="maven.antlr.compile.src.set"
location="${maven.build.dir}/antlr"/>
location="${maven.antlr.target.dir}"/>
<maven:addPath id="maven.compile.src.set"
refid="maven.antlr.compile.src.set"/>
@@ -30,7 +30,7 @@
${maven.antlr.grammars}
</util:tokenize>
<antlr:antlr outputDir="${maven.build.dir}/antlr">
<antlr:antlr outputDir="${maven.antlr.target.dir}">
<j:forEach var="grammar" items="${grammars.iterator()}">
<antlr:grammar>${grammar}</antlr:grammar>
</j:forEach>

View File

@@ -1 +1,2 @@
maven.antlr.src.dir=MAVEN_ANTLR_SRC_DIR_NOT_SET
maven.antlr.target.dir=${maven.build.dir}/antlr

View File

@@ -19,6 +19,9 @@
<action dev="dion" type="add">
Added documentation for navigation, changes, properties and goals
</action>
<action dev="bwalding" type="update">
Can now use maven.antlr.target.dir to set where generated files are placed. Defaults to ${maven.build.dir}/antlr
</action>
</release>
<release version="1.0" date="2002-07-16">

View File

@@ -26,7 +26,13 @@
<td>No</td>
<td>
Must be set to allow antlr processing to happen.
<strong>FIXME: It appears this property isn't used?</strong>
</td>
</tr>
<tr>
<td>maven.antlr.target.dir</td>
<td>Yes - defaults to ${maven.build.dir}/antlr</td>
<td>
Defines where antlr will process .g files to.
</td>
</tr>
</table>