Brenden Bain wrote:
Hello,

We are having trouble with the "antlr3-maven-plugin". It does this:

  
[INFO] [antlr3:antlr {execution: default}]
[INFO] ANTLR: Processing source directory /Users/bbain/src/atlassian/ 
jira/src/grammar
ANTLR Parser Generator  Version 3.1.3 Mar 17, 2009 19:23:44
error(10):  internal error:  : java.io.FileNotFoundException: / 
xxxxxxx/src/grammar/null/Test.g (No such file or directory)
    

The problem is that our grammar to within the root  of the  
"sourceDirectory". Here is our mvn configuration:

  
Well, your pom is not configured to point at your antlr files I think is it? However, I strongly recommend following the 'standard' layout and place it under src/antlr3/my/package

You will not want to be generating parsers that do not have a package name anyway.

  
<plugin>
   <groupId>org.antlr</groupId>
   <artifactId>antlr3-maven-plugin</artifactId>
   <version>3.1.3-1</version>
   <executions>
       <execution>
           <phase>generate-sources</phase>
           <goals>
               <goal>antlr</goal>
           </goals>
           <configuration>
    

               <sourceDirectory>src/grammar</sourceDirectory>
           </configuration>
       </execution>
   </executions>
</plugin>
    

The Antlr3Mojo.findSourceSubdir does not take into account when the  
grammar file is in the root of the sourceDirectory and will return  
"null/Test.g". Any chance of getting this fixed?
  
I'll look at this, but it won't be fixed very soon. Follow the Maven 'way' and things will work just fine.

Jim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to