code formatting

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1403658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2012-10-30 10:47:30 +00:00
parent e32cf81b6c
commit 0312cb0ff8
3 changed files with 10 additions and 10 deletions

View File

@ -127,10 +127,10 @@ else if ( path.indexOf( "${basedir}" ) >= 0 )
}
catch ( Exception e )
{
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE)
.setMessage( "Failed to interpolate file location " + path + " for profile " + profile.getId() + ": " + e.getMessage())
.setLocation( file.getLocation( missing ? "missing" : "exists" ))
.setException( e ));
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE )
.setMessage( "Failed to interpolate file location " + path + " for profile " + profile.getId() + ": " + e.getMessage() )
.setLocation( file.getLocation( missing ? "missing" : "exists" ) )
.setException( e ) );
return false;
}

View File

@ -58,9 +58,9 @@ public boolean isActive( Profile profile, ProfileActivationContext context, Mode
if ( version == null || version.length() <= 0 )
{
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE)
.setMessage( "Failed to determine Java version for profile " + profile.getId())
.setLocation(activation.getLocation( "jdk" )));
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE )
.setMessage( "Failed to determine Java version for profile " + profile.getId() )
.setLocation(activation.getLocation( "jdk" ) ) );
return false;
}

View File

@ -63,9 +63,9 @@ public boolean isActive( Profile profile, ProfileActivationContext context, Mode
if ( name == null || name.length() <= 0 )
{
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE)
.setMessage( "The property name is required to activate the profile " + profile.getId())
.setLocation( property.getLocation( "" )));
problems.add( new ModelProblemCollectorRequest( Severity.ERROR, Version.BASE )
.setMessage( "The property name is required to activate the profile " + profile.getId() )
.setLocation( property.getLocation( "" ) ) );
return false;
}