public Object evaluate()

in src/main/java/org/apache/maven/artifact/ant/POMPropertyEvaluator.java [44:64]


    public Object evaluate( String property, PropertyHelper propertyHelper )
    {
        String prefix = pom.antId + ".";

        if ( !property.startsWith( prefix ) )
        {
            return null;
        }

        try
        {
            // else handle the property resolution
            String expression = property.substring( prefix.length() );
            return getPOMValue( "project." + expression );
        }
        catch ( Exception ex )
        {
            ex.printStackTrace();
            return null;
        }
    }