You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/05/24 01:00:21 UTC

svn commit: r178051 - /maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java

Author: brett
Date: Mon May 23 16:00:20 2005
New Revision: 178051

URL: http://svn.apache.org/viewcvs?rev=178051&view=rev
Log:
fix properties file basedir

Modified:
    maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=178051&r1=178050&r2=178051&view=diff
==============================================================================
--- maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/components/trunk/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java Mon May 23 16:00:20 2005
@@ -123,7 +123,7 @@
         }
     }
 
-    private static Properties loadProperties( File propertiesFile )
+    private Properties loadProperties( String filename )
         throws VerificationException
     {
         Properties properties = new Properties();
@@ -131,9 +131,9 @@
         FileInputStream fis = null;
         try
         {
+              File propertiesFile = new File( basedir, filename );
             if ( propertiesFile.exists() )
             {
-                System.out.println( "Load properties file : " + propertiesFile.getPath() );
                 fis = new FileInputStream( propertiesFile );
                 properties.load( fis );
             }
@@ -563,7 +563,7 @@
             {
                 verifier.executeHook( "prebuild-hook.txt" );
 
-                Properties properties = verifier.loadProperties( new File( basedir, "system.properties" ) );
+                Properties properties = verifier.loadProperties( "system.properties" );
 
                 verifier.executeGoals( properties, "goals.txt" );
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org