You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2008/10/04 18:30:58 UTC

svn commit: r701663 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java

Author: jvanzyl
Date: Sat Oct  4 09:30:55 2008
New Revision: 701663

URL: http://svn.apache.org/viewvc?rev=701663&view=rev
Log:
o be more lenient when looking for the properties file. in my case i am debugging completely from the eclipse workspace and i don't want to have to produce the JAR everytime i want to execute maven. these properties files should be created as part of the generate resources phase and not buried in the maven archiver and performed during JAR production. bad mixing of concerns.

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java?rev=701663&r1=701662&r2=701663&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java (original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java Sat Oct  4 09:30:55 2008
@@ -66,7 +66,7 @@
             
             if ( resourceAsStream == null )
             {
-                throw new IllegalStateException( "Unable to find Maven properties in classpath: " + MAVEN_PROPERTIES );
+                return new ApplicationInformation( new DefaultArtifactVersion( version ), builtOn );
             }
             
             properties.load( resourceAsStream );