You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by vs...@apache.org on 2007/07/07 14:41:07 UTC

svn commit: r554192 - /maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java

Author: vsiveton
Date: Sat Jul  7 05:41:07 2007
New Revision: 554192

URL: http://svn.apache.org/viewvc?view=rev&rev=554192
Log:
MANTLR-20: Cannot execute the plugin: NullPointerException in AntlrPlugin.execute(AntlrPlugin.java:75)

o throw an exception instead of return null in getGeneratedFile()

Modified:
    maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java

Modified: maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java?view=diff&rev=554192&r1=554191&r2=554192
==============================================================================
--- maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java (original)
+++ maven/plugins/trunk/maven-antlr-plugin/src/main/java/org/apache/maven/plugin/antlr/AbstractAntlrMojo.java Sat Jul  7 05:41:07 2007
@@ -410,7 +410,7 @@
 
         if ( generatedFileName == null )
         {
-            return null;
+            throw new IOException( "Unable to generate the output file name: is the grammar '" + grammar + "' valide?" );
         }
 
         File genFile = null;