Package net.sourceforge.urin

Examples of net.sourceforge.urin.UrinReference


    private DownloadsPage() {
    }

    static HtmlTag downloadsPage(final String version) {
        UrinReference svnUri = http(registeredName("svn.code.sf.net"), path("p", "xazzle", "code", "tags", version));
        return aXazzlePage(
                paragraphTag(
                        xhtmlText("Xazzle is available under the "),
                        anchorTag(xhtmlText("Apache 2 license")).withHref(XazzlePage.href(http(registeredName("www.apache.org"), path("licenses", "LICENSE-2.0")))),
                        xhtmlText(".  It can be downloaded in four forms:")),
                unorderedListTag(
                        listItemTag(
                                xhtmlText("the "), anchorTag(xhtmlText("standard jar")).withHref(XazzlePage.href(standardJarUrin(version))), xhtmlText(", with source code included,")
                        ),
                        listItemTag(
                                xhtmlText("a "), anchorTag(xhtmlText("compact jar")).withHref(XazzlePage.href(compactJarUrin(version))), xhtmlText(", with no source, and no debug information,")
                        ),
                        listItemTag(
                                xhtmlText("as a Maven dependency from central, using "), codeBlock("<dependency>\n" +
                                "   <groupId>net.sourceforge.xazzle</groupId>\n" +
                                "   <artifactId>xazzle</artifactId>\n" +
                                "   <version>" + version + "</version>\n" +
                                "</dependency>")
                        ),
                        listItemTag(
                                xhtmlText("or as the full source code including tests etc. using Subversion from "), codeTag(anchorTag(xhtmlText(svnUri.asString())).withHref(XazzlePage.href(svnUri))), xhtmlText(".")
                        )
                ),
                paragraphTag(
                        xhtmlText("Previous versions are "), anchorTag(xhtmlText("also available")).withHref(XazzlePage.href(https(registeredName("sourceforge.net"), path("projects", "xazzle", "files")))), xhtmlText(".")
                )
View Full Code Here


                )
        );
    }

    private static Tag pom(final String version) {
        UrinReference svnUri = http(registeredName("svn.code.sf.net"), path("p", "xazzle", "code", "tags", version));
        return pomTag(tagName("project"),
                pomTag(tagName("modelVersion"), text("4.0.0")),
                pomTag(tagName("groupId"), text("net.sourceforge.xazzle")),
                pomTag(tagName("artifactId"), text("xazzle")),
                pomTag(tagName("version"), text(version)),
                pomTag(tagName("packaging"), text("jar")),
                pomTag(tagName("name"), text("Xazzle")),
                pomTag(tagName("description"), text("Xazzle is an open source XHTML generator written in Java.")),
                pomTag(tagName("url"), text("http://xazzle.sourceforge.net")),
                pomTag(tagName("licenses"),
                        pomTag(tagName("license"),
                                pomTag(tagName("name"), text("The Apache Software License, Version 2.0")),
                                pomTag(tagName("url"), text("http://www.apache.org/licenses/LICENSE-2.0.txt")),
                                pomTag(tagName("distribution"), text("repo"))
                        )
                ),
                pomTag(tagName("scm"),
                        pomTag(tagName("url"), text(svnUri.asString()))
                ),
                pomTag(tagName("dependencies"),
                        pomTag(tagName("dependency"),
                                pomTag(tagName("groupId"), text("net.sourceforge.writexml")),
                                pomTag(tagName("artifactId"), text("writexml")),
View Full Code Here

TOP

Related Classes of net.sourceforge.urin.UrinReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.