flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josebarra...@apache.org
Subject [47/50] git commit: [flex-falcon] [refs/heads/maven] - added jflex and antler maven plugin generation
Date Wed, 09 Jul 2014 23:31:59 GMT
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/58326645
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/58326645
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/58326645

Branch: refs/heads/maven
Commit: 58326645dbc46490273f4c3a988840922e2751fc
Parents: c390295
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Wed Jul 17 21:59:29 2013 +0200
Committer: Jose Barragan <josebarragan@apache.org>
Committed: Thu Jul 10 01:09:24 2014 +0200

----------------------------------------------------------------------
 compiler/pom.xml | 125 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 123 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/58326645/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>
 


Mime
View raw message