fix properties file basedir

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@178051 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-23 23:00:20 +00:00
parent f5519934fd
commit 6ac1d85984
1 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ public class Verifier
}
}
private static Properties loadProperties( File propertiesFile )
private Properties loadProperties( String filename )
throws VerificationException
{
Properties properties = new Properties();
@ -131,9 +131,9 @@ public class Verifier
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 @@ public class Verifier
{
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" );