private void writeServiceEndpoint()

in src/main/java/org/apache/maven/plugin/doap/DoapMojo.java [2009:2026]


    private void writeServiceEndpoint(XMLWriter writer) {
        String serviceEndpoint = DoapUtil.interpolate(doapOptions.getServiceEndpoint(), project, settings);
        if (serviceEndpoint == null || serviceEndpoint.isEmpty()) {
            return;
        }

        serviceEndpoint = serviceEndpoint.trim();
        try {
            new URL(serviceEndpoint);
        } catch (MalformedURLException e) {
            messages.addMessage(
                    new String[] {"doapOptions", "serviceEndpoint"}, serviceEndpoint, UserMessages.INVALID_URL);
            return;
        }

        DoapUtil.writeComment(writer, "Service endpoint.");
        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "service-endpoint", serviceEndpoint);
    }