Package org.codehaus.plexus.util.xml

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


                excludes = StringUtils.isEmpty( excludes ) ? "**/*.java" : excludes + "|**/*.java";
            }

            if ( StringUtils.isNotEmpty( excludes ) )
            {
                writer.addAttribute( ATTR_EXCLUDING, excludes );
            }

            writer.endElement();

        }
View Full Code Here


        // ----------------------------------------------------------------------
        // The default output
        // ----------------------------------------------------------------------

        writer.startElement( ELT_CLASSPATHENTRY );
        writer.addAttribute( ATTR_KIND, ATTR_OUTPUT );
        writer.addAttribute( ATTR_PATH, defaultOutput );
        writer.endElement();

        // ----------------------------------------------------------------------
        // Container classpath entries
View Full Code Here

        // The default output
        // ----------------------------------------------------------------------

        writer.startElement( ELT_CLASSPATHENTRY );
        writer.addAttribute( ATTR_KIND, ATTR_OUTPUT );
        writer.addAttribute( ATTR_PATH, defaultOutput );
        writer.endElement();

        // ----------------------------------------------------------------------
        // Container classpath entries
        // ----------------------------------------------------------------------
View Full Code Here

        // ----------------------------------------------------------------------

        for ( Iterator it = config.getClasspathContainers().iterator(); it.hasNext(); )
        {
            writer.startElement( ELT_CLASSPATHENTRY );
            writer.addAttribute( ATTR_KIND, "con" ); //$NON-NLS-1$
            writer.addAttribute( ATTR_PATH, (String) it.next() );
            writer.endElement(); // name
        }

        // ----------------------------------------------------------------------
View Full Code Here

        for ( Iterator it = config.getClasspathContainers().iterator(); it.hasNext(); )
        {
            writer.startElement( ELT_CLASSPATHENTRY );
            writer.addAttribute( ATTR_KIND, "con" ); //$NON-NLS-1$
            writer.addAttribute( ATTR_PATH, (String) it.next() );
            writer.endElement(); // name
        }

        // ----------------------------------------------------------------------
        // The dependencies
View Full Code Here

    for (Iterator it = uris.iterator(); it.hasNext();) {
      DependencyInformation info = (DependencyInformation) it.next();
      if ("jbi-shared-library".equals(info.getType())) {
        writer.startElement("shared-library");
        writer.addAttribute("version", info.getVersion());
        writer.writeText(info.getName());
        writer.endElement();
      }
    }
View Full Code Here

          + 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");

    // We need to get all the namespaces into a hashmap so we
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");

    // We need to get all the namespaces into a hashmap so we
    // can get the QName output correctly
View Full Code Here

        .hasNext();) {
      String key = (String) iterator.next();
      StringBuffer namespaceDecl = new StringBuffer();
      namespaceDecl.append("xmlns:");
      namespaceDecl.append(namespaceMap.get(key));
      writer.addAttribute(namespaceDecl.toString(), key);
    }

    // Put in the provides
    for (Iterator iterator = provides.iterator(); iterator.hasNext();) {
      Provides providesEntry = (Provides) iterator.next();
View Full Code Here

          + 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);
    writer.addAttribute("version", version);
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.