From 948fedd99fbfb28252b16161706c535fefcee94e Mon Sep 17 00:00:00 2001 From: Emmanuel Venisse Date: Sat, 11 Sep 2004 12:50:12 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163074 13f79535-47bb-0310-9956-ffa450edef68 --- .../plugin/OgnlProjectValueExtractor.java | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/OgnlProjectValueExtractor.java b/maven-core/src/main/java/org/apache/maven/plugin/OgnlProjectValueExtractor.java index 991c649f63..4732b59f9a 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/OgnlProjectValueExtractor.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/OgnlProjectValueExtractor.java @@ -90,24 +90,16 @@ public class OgnlProjectValueExtractor } else if ( expression.startsWith( "#basedir" ) ) { - try - { - int pathSeparator = expression.indexOf( "/" ); + int pathSeparator = expression.indexOf( "/" ); - if ( pathSeparator > 0 ) - { - value = context.getProject().getFile().getParentFile().getAbsolutePath() - + expression.substring( pathSeparator ); - } - else - { - new Exception( "Got expression '" + expression + "' that was not recognised" ).printStackTrace(); - } - } - catch ( OgnlException e ) + if ( pathSeparator > 0 ) { - // do nothing - e.printStackTrace(); // TODO: should log? should ignore as previously? + value = context.getProject().getFile().getParentFile().getAbsolutePath() + + expression.substring( pathSeparator ); + } + else + { + new Exception( "Got expression '" + expression + "' that was not recognised" ).printStackTrace(); } } else if ( expression.startsWith( "#" ) )