mirror of https://github.com/apache/maven.git
*** 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:
parent
1f830eca4c
commit
948fedd99f
|
@ -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( "#" ) )
|
||||
|
|
Loading…
Reference in New Issue