added jflex and antler maven plugin generation
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/f452292a Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/f452292a Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/f452292a Branch: refs/heads/maven Commit: f452292a342c225ece7beec73983832e0ce319b8 Parents: b8ba208 Author: Carlos Rovira <carlosrov...@apache.org> Authored: Wed Jul 17 21:59:29 2013 +0200 Committer: Jose Barragan <josebarra...@apache.org> Committed: Fri Feb 28 10:47:34 2014 +0100 ---------------------------------------------------------------------- compiler/pom.xml | 125 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/f452292a/compiler/pom.xml ---------------------------------------------------------------------- diff --git a/compiler/pom.xml b/compiler/pom.xml index 3aa8061..2180fb4 100644 --- a/compiler/pom.xml +++ b/compiler/pom.xml @@ -15,23 +15,144 @@ <name>Falcon Compiler</name> <description>Falcon Flex main compiler</description> - <packaging>jar</packaging> + <properties> + <javac.debug>true</javac.debug> + <javac.deprecation>false</javac.deprecation> + </properties> + + <packaging>pom</packaging> - <!-- JFLEX 1.4.3 http://jflex.sourceforge.net/maven-jflex-plugin/usage.html--> <build> + <sourceDirectory>src</sourceDirectory> <plugins> + <!-- JFLEX 1.4.3 http://jflex.sourceforge.net/maven-jflex-plugin/usage.html--> <plugin> <groupId>de.jflex</groupId> <artifactId>maven-jflex-plugin</artifactId> <version>1.4.3</version> + <configuration> + <outputDirectory>target/generated/src</outputDirectory> + </configuration> + <executions> + <execution> + <id>raw.as.tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <lexDefinitions> + <lexDefinition>src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex</lexDefinition> + </lexDefinitions> + <skeleton>src/org/apache/flex/compiler/internal/parsing/as/skeleton.falcon</skeleton> + </configuration> + </execution> + <execution> + <id>raw.asdoc.tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <lexDefinitions> + <lexDefinition>src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex</lexDefinition> + </lexDefinitions> + </configuration> + </execution> + <execution> + <id>raw.mxml.tokenizer</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <lexDefinitions> + <lexDefinition>src/org/apache/flex/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex</lexDefinition> + </lexDefinitions> + </configuration> + </execution> + </executions> + </plugin> + <!-- ANTLR --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>antlr-maven-plugin</artifactId> + <version>2.2</version> + <configuration> + <sourceDirectory>src/org/apache/flex/compiler/internal</sourceDirectory> + <outputDirectory>target/generated/src</outputDirectory> + </configuration> <executions> <execution> + <id>as.parser</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <grammars>parsing/as/ASParser.g</grammars> + </configuration> + </execution> + <execution> + <id>metadata.parser</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <grammars>parsing/as/MetadataParser.g</grammars> + </configuration> + </execution> + <execution> + <id>css.lexer.and.parser</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <grammars>css/CSS.g</grammars> + </configuration> + </execution> + <execution> + <id>css.tree</id> <goals> <goal>generate</goal> </goals> + <configuration> + <grammars>css/CSSTree.g</grammars> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>apt-maven-plugin</artifactId> + <version>1.0-alpha-5</version> + <executions> + <execution> + <goals> + <goal>process</goal> + </goals> + <configuration> + <includea> + <include>generated/src/org/apache/flex/compiler/internal/parsing/as/ASParser.java</include> + </includes> + <factory>@SuppressWarnings("unused")</factory> + + </configuration> </execution> </executions> </plugin> + <!-- The AnnotateClass tool is used to add @SupressWarnings annotations to Java code produced by ANTLR and JBurg --> + <!--<plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <debug>${javac.debug}</debug> + <showDeprecation>${javac.deprecation}</showDeprecation> + <compilerArgument>-Xlint:all,-path,-fallthrough</compilerArgument> + <source>tools/AnnotateClass</source> + <generatedSourcesDirectory>generated/classes</generatedSourcesDirectory> + </configuration> + <goals> + <goal>compile</goal> + </goals> + </plugin>--> </plugins> </build>