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:
@@ -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>
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
maven.antlr.src.dir=MAVEN_ANTLR_SRC_DIR_NOT_SET
|
||||
maven.antlr.target.dir=${maven.build.dir}/antlr
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user