Fix for the fact that maven.compile.src.set is no longer available
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -19,13 +19,14 @@
|
||||
description="Generate source from antlr grammars"
|
||||
prereqs="antlr:prepare-filesystem">
|
||||
<j:if test="${!antlrSrcDir.equals('MAVEN_ANTLR_SRC_DIR_NOT_SET')}">
|
||||
|
||||
<!--
|
||||
<ant:path id="maven.antlr.compile.src.set"
|
||||
location="${maven.build.dir}/antlr"/>
|
||||
|
||||
<maven:addPath id="maven.compile.src.set"
|
||||
location="${maven.build.dir}/antlr"/>-->
|
||||
<j:set var="pathToAdd">${maven.build.dir}/antlr</j:set>
|
||||
<j:set var="dummy">${pom.addCompileSourceRoot(pathToAdd)}</j:set>
|
||||
<!-- <maven:addPath id="maven.compile.src.set"
|
||||
refid="maven.antlr.compile.src.set"/>
|
||||
|
||||
-->
|
||||
<util:tokenize var="grammars" delim=" ">
|
||||
${maven.antlr.grammars}
|
||||
</util:tokenize>
|
||||
@@ -39,6 +40,7 @@
|
||||
</goal>
|
||||
|
||||
<preGoal name="java:compile">
|
||||
<ant:echo>antlrSrcDir='${antlrSrcDir}'</ant:echo>
|
||||
<j:if test="${!antlrSrcDir.equals('MAVEN_ANTLR_SRC_DIR_NOT_SET')}">
|
||||
<attainGoal name="antlr:generate"/>
|
||||
</j:if>
|
||||
|
||||
Reference in New Issue
Block a user