unstable changes (need deep revision)

Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/87e5047d
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/87e5047d
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/87e5047d

Branch: refs/heads/maven
Commit: 87e5047d24affe5b57dadf4780e032dd2286dc1f
Parents: f452292
Author: Carlos Rovira <carlosrov...@apache.org>
Authored: Fri Dec 27 22:57:54 2013 +0100
Committer: Jose Barragan <josebarra...@apache.org>
Committed: Fri Feb 28 10:47:34 2014 +0100

----------------------------------------------------------------------
 compiler/pom.xml | 78 +++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 66 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/87e5047d/compiler/pom.xml
----------------------------------------------------------------------
diff --git a/compiler/pom.xml b/compiler/pom.xml
index 2180fb4..3ecc4f0 100644
--- a/compiler/pom.xml
+++ b/compiler/pom.xml
@@ -25,13 +25,14 @@
     <build>
         <sourceDirectory>src</sourceDirectory>
         <plugins>
-            <!-- JFLEX 1.4.3 
http://jflex.sourceforge.net/maven-jflex-plugin/usage.html-->
+            <!-- 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>
+                    
<skeleton>src/org/apache/flex/compiler/internal/parsing/as/skeleton.default</skeleton>
                 </configuration>
                 <executions>
                     <execution>
@@ -41,7 +42,8 @@
                         </goals>
                         <configuration>
                             <lexDefinitions>
-                                
<lexDefinition>src/org/apache/flex/compiler/internal/parsing/as/RawASTokenizer.lex</lexDefinition>
+                                
<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>
@@ -53,7 +55,8 @@
                         </goals>
                         <configuration>
                             <lexDefinitions>
-                                
<lexDefinition>src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex</lexDefinition>
+                                
<lexDefinition>src/org/apache/flex/compiler/internal/parsing/as/RawASDocTokenizer.lex
+                                </lexDefinition>
                             </lexDefinitions>
                         </configuration>
                     </execution>
@@ -64,7 +67,8 @@
                         </goals>
                         <configuration>
                             <lexDefinitions>
-                                
<lexDefinition>src/org/apache/flex/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex</lexDefinition>
+                                
<lexDefinition>src/org/apache/flex/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex
+                                </lexDefinition>
                             </lexDefinitions>
                         </configuration>
                     </execution>
@@ -80,6 +84,7 @@
                     <outputDirectory>target/generated/src</outputDirectory>
                 </configuration>
                 <executions>
+                    <!-- Generating ASParser and ASTokenTypes -->
                     <execution>
                         <id>as.parser</id>
                         <goals>
@@ -88,37 +93,86 @@
                         <configuration>
                             <grammars>parsing/as/ASParser.g</grammars>
                         </configuration>
+                        <!-- TODO ASParser.java annotate tool 
@SuppressWarnings("unused") -->
+                        <!-- TODO ASTokenTypes.java annotate tool 
@SuppressWarnings("unused") -->
                     </execution>
+                    <!-- Generating MetadataParser and MetadataTokenTypes -->
                     <execution>
                         <id>metadata.parser</id>
                         <goals>
                             <goal>generate</goal>
                         </goals>
                         <configuration>
-                            <grammars>parsing/as/MetadataParser.g</grammars>
+                            
<sourceDirectory>src/org/apache/flex/compiler/internal/parsing/as</sourceDirectory>
+                            <grammars>MetadataParser.g</grammars>
+                            
<!--<includes>ImportMetadataTokenTypes.txt</includes>-->
                         </configuration>
+                        <!-- TODO MetadataParser.java annotate tool 
@SuppressWarnings("all") -->
+                        <!-- TODO MetadataTokenTypes.java annotate tool 
@SuppressWarnings("unused") -->
                     </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <version>1.2.1</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>java</goal>
+                        </goals>
+                        <configuration>
+                            
<mainClass>org.apache.flex.compiler.tools.AnnotateClass</mainClass>
+
+                            <!--<argument>-classpath</argument>
+                            <classpath>
+                                <dependency>commons-io:commons-io</dependency>
+                                
<dependency>commons-lang:commons-lang</dependency>
+                            </classpath>
+                            <executable>maven</executable>
+                            <workingDirectory>/tmp</workingDirectory>-->
+
+
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <!--- See more at: 
http://www.vineetmanohar.com/2009/11/3-ways-to-run-java-main-from-maven/#sthash.iBz2SwMh.dpuf-->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>antlr3-maven-plugin</artifactId>
+                <version>3.1.0</version>
+                <configuration>
+                    
<sourceDirectory>src/org/apache/flex/compiler/internal</sourceDirectory>
+                    <outputDirectory>target/generated/src</outputDirectory>
+                </configuration>
+                <executions>
+                    <!-- Generating CSSLexer and CSSParser -->
                     <execution>
                         <id>css.lexer.and.parser</id>
                         <goals>
-                            <goal>generate</goal>
+                            <goal>antlr</goal>
                         </goals>
                         <configuration>
-                            <grammars>css/CSS.g</grammars>
+                            <sourceDirectory>css/CSS.g</sourceDirectory>
                         </configuration>
+                        <!-- TODO CSSLexer.java annotate tool 
@SuppressWarnings("unused") -->
+                        <!-- TODO CSSParser.java annotate tool 
@SuppressWarnings("unused") -->
                     </execution>
+                    <!-- Generating CSSTree -->
                     <execution>
                         <id>css.tree</id>
                         <goals>
-                            <goal>generate</goal>
+                            <goal>antlr</goal>
                         </goals>
                         <configuration>
-                            <grammars>css/CSSTree.g</grammars>
+                            <sourceDirectory>css/CSSTree.g</sourceDirectory>
                         </configuration>
+                        <!-- TODO CSSTree.java annotate tool 
@SuppressWarnings({"rawtypes", "unchecked", "unused"} -->
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
+            <!--<plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>apt-maven-plugin</artifactId>
                 <version>1.0-alpha-5</version>
@@ -128,7 +182,7 @@
                             <goal>process</goal>
                         </goals>
                         <configuration>
-                            <includea>
+                            <includes>
                                 
<include>generated/src/org/apache/flex/compiler/internal/parsing/as/ASParser.java</include>
                             </includes>
                             <factory>@SuppressWarnings("unused")</factory>
@@ -136,7 +190,7 @@
                         </configuration>
                     </execution>
                 </executions>
-            </plugin>
+            </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>

Reply via email to