protected Object evaluate()

in src/main/org/apache/ant/props/stringops/RequireProperty.java [40:47]


    protected Object evaluate(String[] groups, PropertyHelper propertyHelper) {
        String result = (String) propertyHelper.getProperty(groups[1]);
        if (result == null) {
            String message = "".equals(groups[2]) ? DEFAULT_MESSAGE + groups[1] : groups[2];
            throw new BuildException(message);
        }
        return result;
    }