*** empty log message ***

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-09-11 12:50:12 +00:00
parent 1f830eca4c
commit 948fedd99f
1 changed files with 8 additions and 16 deletions

View File

@ -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( "#" ) )