Adding more logging for FileProfileActivator, to debug the build on ci.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@612634 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2008-01-16 23:41:00 +00:00
parent a0827ce0b6
commit 4e84caabf2
1 changed files with 8 additions and 2 deletions

View File

@ -69,6 +69,7 @@ public class FileProfileActivator
{
fileString = StringUtils.replace( interpolator.interpolate( fileString, "" ), "\\", "/" );
System.out.println( "FileProfileActivator: Checking file existence for: " + fileString );
if ( logger != null )
{
logger.info( "FileProfileActivator: Checking file existence for: " + fileString );
@ -84,6 +85,7 @@ public class FileProfileActivator
{
fileString = StringUtils.replace( interpolator.interpolate( fileString, "" ), "\\", "/" );
System.out.println( "FileProfileActivator: Checking file is missing for: " + fileString );
if ( logger != null )
{
logger.info( "FileProfileActivator: Checking file is missing for: " + fileString );
@ -92,9 +94,13 @@ public class FileProfileActivator
return !FileUtils.fileExists( fileString );
}
}
else if ( logger != null )
else
{
logger.info( "FileProfileActivator: no file specified. Skipping activation." );
System.out.println( "FileProfileActivator: no file specified. Skipping activation." );
if ( logger != null )
{
logger.info( "FileProfileActivator: no file specified. Skipping activation." );
}
}
return false;