private static String checkConfiguration(MavenProject prj, Object conf, String property) { if (conf != null && conf instanceof Xpp3Dom) { Xpp3Dom dom = (Xpp3Dom)conf; Xpp3Dom source = dom.getChild(property); if (source != null) { NBPluginParameterExpressionEvaluator eval = new NBPluginParameterExpressionEvaluator(prj, EmbedderFactory.getProjectEmbedder().getSettings(), new Properties()); try { Object evaluated = eval.evaluate(source.getValue().trim()); return evaluated != null ? ("" + evaluated) : source.getValue().trim(); } catch (ExpressionEvaluationException ex) { Exceptions.printStackTrace(ex); } return source.getValue().trim(); } } return null; }
String expression = stripTokens( expr ); if ( expression.equals( expr ) ) Object subResult = evaluate( expr.substring( index, lastIndex + 1 ) ); retVal += evaluate( expr.substring( lastIndex + 1 ) ); return retVal; value = val.substring( 0, exprStartDelimiter ) + evaluate( val.substring( exprStartDelimiter ) ); value = evaluate( val.substring( exprStartDelimiter ) );