private void writeScreenshots()

in src/main/java/org/apache/maven/plugin/doap/DoapMojo.java [1134:1150]


    private void writeScreenshots(XMLWriter writer, MavenProject project) {
        String screenshots = DoapUtil.interpolate(doapOptions.getScreenshots(), project, settings);
        if (screenshots == null || screenshots.isEmpty()) {
            return;
        }

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

        DoapUtil.writeComment(writer, "Web page with screenshots of project.");
        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "screenshots", screenshots);
    }