svn commit: r422285 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r422285 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java

Fabrizio Giustina-4
Author: fgiust
Date: Sat Jul 15 13:00:54 2006
New Revision: 422285

URL: http://svn.apache.org/viewvc?rev=422285&view=rev
Log:
Print working dir when checkstyle.xml is not found. Can help in diagnosing relative paths problems.

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java?rev=422285&r1=422284&r2=422285&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/Locator.java Sat Jul 15 13:00:54 2006
@@ -124,7 +124,8 @@
                 else
                 {
                     getLog().debug( "Location is not a Resource." );
-                    throw new IOException( "Unable to find location '" + location + "' as URL, File or Resource." );
+                    throw new IOException( "Unable to find location '" + location
+                        + "' as URL, File or Resource. Working dir is " + new File( "" ).getAbsolutePath() );
                 }
             }
         }