Package org.codehaus.plexus.util.xml

Examples of org.codehaus.plexus.util.xml.XMLWriter.startElement()


        final String rootDirectory = ResourceUtils.normalizePath(this.project.getBasedir().toString());
        final File classpathFile = new File(rootDirectory, ".classpath");
        final FileWriter fileWriter = new FileWriter(classpathFile);
        final XMLWriter writer = new PrettyPrintXMLWriter(fileWriter);

        writer.startElement("classpath");

        final Set projectArtifactIds = new LinkedHashSet();
        for (final Iterator iterator = projects.iterator(); iterator.hasNext();)
        {
            final MavenProject project = (MavenProject)iterator.next();
View Full Code Here


            throw new JbiPluginException("Exception while opening file["
                    + descriptor.getAbsolutePath() + "]", ex);
        }

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("services");
        writer.addAttribute("binding-component", bc ? "true" : "false");
View Full Code Here

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("services");
        writer.addAttribute("binding-component", bc ? "true" : "false");

        // We need to get all the namespaces into a hashmap so we
        // can get the QName output correctly
        Map namespaceMap = getNamespaceMap(provides, consumes);
View Full Code Here

        }

        // Put in the provides
        for (Iterator iterator = provides.iterator(); iterator.hasNext();) {
            Provides providesEntry = (Provides) iterator.next();
            writer.startElement("provides");
            addQNameAttribute(writer, "interface-name", providesEntry
                    .getInterfaceName(), namespaceMap);
            addQNameAttribute(writer, "service-name", providesEntry
                    .getServiceName(), namespaceMap);
            addStringAttribute(writer, "endpoint-name", providesEntry
View Full Code Here

        }

        // Put in the consumes
        for (Iterator iterator = consumes.iterator(); iterator.hasNext();) {
            Consumes consumesEntry = (Consumes) iterator.next();
            writer.startElement("consumes");
            addQNameAttribute(writer, "interface-name", consumesEntry
                    .getInterfaceName(), namespaceMap);
            addQNameAttribute(writer, "service-name", consumesEntry
                    .getServiceName(), namespaceMap);
            addStringAttribute(writer, "endpoint-name", consumesEntry
View Full Code Here

            throw new JbiPluginException("Exception while opening file["
                    + descriptor.getAbsolutePath() + "]", ex);
        }

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("shared-library");
        writer.addAttribute("class-loader-delegation", classLoaderDelegation);
View Full Code Here

        XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
        writer.startElement("jbi");
        writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
        writer.addAttribute("version", "1.0");

        writer.startElement("shared-library");
        writer.addAttribute("class-loader-delegation", classLoaderDelegation);
        writer.addAttribute("version", version);

        writer.startElement("identification");
        writer.startElement("name");
View Full Code Here

        writer.startElement("shared-library");
        writer.addAttribute("class-loader-delegation", classLoaderDelegation);
        writer.addAttribute("version", version);

        writer.startElement("identification");
        writer.startElement("name");
        writer.writeText(name);
        writer.endElement();
        writer.startElement("description");
        writer.writeText(description);
View Full Code Here

        writer.startElement("shared-library");
        writer.addAttribute("class-loader-delegation", classLoaderDelegation);
        writer.addAttribute("version", version);

        writer.startElement("identification");
        writer.startElement("name");
        writer.writeText(name);
        writer.endElement();
        writer.startElement("description");
        writer.writeText(description);
        writer.endElement();
View Full Code Here

        writer.startElement("identification");
        writer.startElement("name");
        writer.writeText(name);
        writer.endElement();
        writer.startElement("description");
        writer.writeText(description);
        writer.endElement();
        writer.endElement();

        writer.startElement("shared-library-class-path");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.