o Add a path not a reference. The id reference is not really one anymore.
New tags should be created for specifically adding the the compile source roots and the test compile sources roots and the AddPathTag should be deprecated. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
fc4d19ffed
commit
a1c385b84a
1 file changed
+4
-9
+4
-9
@@ -19,14 +19,10 @@
|
||||
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"/>-->
|
||||
<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"/>
|
||||
-->
|
||||
|
||||
<maven:addPath id="maven.compile.src.set"
|
||||
path="${maven.build.dir}/antlr"/>
|
||||
|
||||
<util:tokenize var="grammars" delim=" ">
|
||||
${maven.antlr.grammars}
|
||||
</util:tokenize>
|
||||
@@ -40,7 +36,6 @@
|
||||
</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