private PropertyDescriptor getPropertyDescriptor()

in org.apache.easyant4e/src/org/apache/easyant4e/ivyde/extension/model/EasyAntModuleDescriptorExtension.java [294:308]


    private PropertyDescriptor getPropertyDescriptor(IvyTagAttribute att, IvyFile ivyFile) {
        String buildType = getBuildType(ivyFile);
        if (ivyFile.getAllAttsValues().containsKey(EASYANT_PROPERTY_NAME_ATTR)) {
            String propertyNameValue = ivyFile.getAllAttsValues().get(EASYANT_PROPERTY_NAME_ATTR).toString();
            if (buildType != null && propertyNameValue != null) {
                List<PropertyDescriptor> propertyDescriptors = easyantCoreService.getPropertiesForBuildType(buildType);
                for (PropertyDescriptor propertyDescriptor : propertyDescriptors) {
                    if (propertyNameValue.equals(propertyDescriptor.getName())) {
                        return propertyDescriptor;
                    }
                }
            }
        }
        return null;
    }