diff options
author | Claude Brisson <cbrisson@apache.org> | 2017-01-26 00:12:21 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2017-01-26 00:12:21 +0000 |
commit | f73c6d84042dd52c40dc9e26ad4ed061df9e5cc5 (patch) | |
tree | 6af1f678fa371d634d0cd8cdd9ddd9074ba46141 /velocity-engine-core/pom.xml | |
parent | 5beb8152a22d7093595180952f797654baaa6cd4 (diff) | |
download | apache-velocity-engine-f73c6d84042dd52c40dc9e26ad4ed061df9e5cc5.tar.gz |
[engine] remove antrun trick, always build parser, and put generated sources in target/
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1780293 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/pom.xml')
-rw-r--r-- | velocity-engine-core/pom.xml | 62 |
1 files changed, 3 insertions, 59 deletions
diff --git a/velocity-engine-core/pom.xml b/velocity-engine-core/pom.xml index beaf55d6..5fa8720b 100644 --- a/velocity-engine-core/pom.xml +++ b/velocity-engine-core/pom.xml @@ -114,72 +114,16 @@ <debugTokenManager>false</debugTokenManager> <jdkVersion>1.7</jdkVersion> <nodeUsesParser>true</nodeUsesParser> - <nodePackage>org.apache.velocity.runtime.parser</nodePackage> + <nodePackage>org.apache.velocity.runtime.parser.node</nodePackage> <sourceDirectory>${basedir}/src/main/parser</sourceDirectory> +<!-- <interimDirectory>${basedir}/src/main/java</interimDirectory> <outputDirectory>${basedir}/src/main/java</outputDirectory> +--> </configuration> </plugin> - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.8</version> - <executions> - <execution> - <id>parser-init</id> - <phase>initialize</phase> - <configuration> - <target if="${parser.create}"> - <delete quiet="true" verbose="false"> - <fileset dir="${basedir}/src/main/java/org/apache/velocity/runtime/parser" includes="AST*.java,Parser*.java,Token*.java" /> - </delete> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>parser-cleanup</id> - <phase>process-sources</phase> - <configuration> - <target> - <!-- delete unnecessary files generated by JavaCC --> - <delete quiet="true" verbose="false"> - <fileset dir="${basedir}/src/main/java/org/apache/velocity/runtime/parser" includes="Node.java,ParserVisitor.java,SimpleNode.java" /> - </delete> - <!-- fix JJTParserState class to use our custom Node class --> - <replace file="${basedir}/src/main/java/org/apache/velocity/runtime/parser/JJTParserState.java"> - <replacetoken>import org.apache.velocity.runtime.parser.node.Node;</replacetoken> - <replacevalue /> - </replace> - <replace file="${basedir}/src/main/java/org/apache/velocity/runtime/parser/JJTParserState.java"> - <replacetoken>package org.apache.velocity.runtime.parser;</replacetoken> - <replacevalue>package org.apache.velocity.runtime.parser; import org.apache.velocity.runtime.parser.node.Node;</replacevalue> - </replace> - <!-- if we just generated AST Node classes by JavaCC, end the build here and give instructions --> - <condition property="stop"><istrue value="${parser.nodefiles}" /></condition> - <fail if="stop"><![CDATA[- -------------------------------------------------------------------------------- -Velocity AST Node classes created to src/main/java/org/apache/velocity/runtime/parser - -1. Delete already existing AST Node classes from this directory -2. Move the new generated AST Node class(es) to src/main/java/org/apache/velocity/runtime/parser/node -3. Change the package name of the new AST Node(s) in the source code file -4. Write the source code to support the new desired functionality of that node -------------------------------------------------------------------------------- -]]> -</fail> - </target> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> </plugins> </build> - <dependencies> <dependency> <groupId>org.apache.commons</groupId> |