From 90e62086d1bf75f206ec75b8133b979b904f6555 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Tue, 23 Oct 2007 20:25:50 +0000 Subject: [PATCH] Forgot one. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@587647 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/profiles/build/DefaultProfileAdvisor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maven-project/src/main/java/org/apache/maven/profiles/build/DefaultProfileAdvisor.java b/maven-project/src/main/java/org/apache/maven/profiles/build/DefaultProfileAdvisor.java index 088d41fbfe..fe5d7ddbea 100644 --- a/maven-project/src/main/java/org/apache/maven/profiles/build/DefaultProfileAdvisor.java +++ b/maven-project/src/main/java/org/apache/maven/profiles/build/DefaultProfileAdvisor.java @@ -109,7 +109,7 @@ public class DefaultProfileAdvisor String projectId = ArtifactUtils.versionlessKey( groupId, artifactId ); - throw new ProjectBuildingException( projectId, e.getMessage(), pomFile, e ); + throw new ProjectBuildingException( projectId, e.getMessage(), pomFile.getAbsolutePath(), e ); } for ( Iterator it = activeProfiles.iterator(); it.hasNext(); ) @@ -166,7 +166,7 @@ public class DefaultProfileAdvisor catch ( ProfileActivationException e ) { throw new ProjectBuildingException( modelId, - "Failed to compute active profiles for repository aggregation.", pomFile, e ); + "Failed to compute active profiles for repository aggregation.", pomFile.getAbsolutePath(), e ); } LinkedHashSet remoteRepositories = new LinkedHashSet(); @@ -239,13 +239,13 @@ public class DefaultProfileAdvisor catch ( IOException e ) { throw new ProjectBuildingException( model.getId(), "Cannot read profiles.xml resource from directory: " - + projectDir, pomFile, e ); + + projectDir, pomFile.getAbsolutePath(), e ); } catch ( XmlPullParserException e ) { throw new ProjectBuildingException( model.getId(), "Cannot parse profiles.xml resource from directory: " + projectDir, - pomFile, e ); + pomFile.getAbsolutePath(), e ); } } }