private void outputProperties()

in src/main/java/org/apache/easyant/core/report/XMLEasyAntReportWriter.java [321:360]


    private void outputProperties(EasyAntReport easyAntReport, PrintWriter out) {
        out.println("\t\t<properties>");
        Map<String, PropertyDescriptor> properties;
        if (displaySubElements) {
            properties = easyAntReport.getPropertyDescriptors();
        } else {
            properties = easyAntReport.getPropertyReportsFromCurrentModule();
        }

        for (Entry<String, PropertyDescriptor> entry : properties.entrySet()) {
            PropertyDescriptor propertyDescriptor = entry.getValue();

            StringBuilder param = new StringBuilder();
            param.append("\t\t\t<property name=\"");
            param.append(propertyDescriptor.getName());
            param.append("\"");
            if (propertyDescriptor.getDescription() != null) {
                param.append(" description=\"");
                param.append(propertyDescriptor.getDescription());
                param.append("\"");
            }
            param.append(" required=\"");
            param.append(propertyDescriptor.isRequired());
            param.append("\"");
            if (propertyDescriptor.getDefaultValue() != null) {
                param.append(" default=\"");
                param.append(propertyDescriptor.getDefaultValue());
                param.append("\"");
            }
            if (propertyDescriptor.getValue() != null) {
                param.append(" value=\"");
                param.append(propertyDescriptor.getValue());
                param.append("\"");
            }
            param.append("/>");
            out.println(param.toString());

        }
        out.println("\t\t</properties>");
    }