Package org.codehaus.plexus.util.xml

Examples of org.codehaus.plexus.util.xml.Xpp3Dom.addChild()


        result.setAttribute( XMLNS, "http://java.sun.com/xml/ns/j2ee" );
        result.setAttribute( XMLNS_XSI, "http://www.w3.org/2001/XMLSchema-instance" );
        result.setAttribute( XMLNS_SCHEMA_LOCATION,
                             "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_"
                                 + j2eeVersion.charAt( 0 ) + "_" + j2eeVersion.charAt( 2 ) + ".xsd" );
        result.addChild( new Xpp3Dom( APPLICATION_XML_DESCRIPTION ) );
        Xpp3Dom name = new Xpp3Dom( APPLICATION_XML_DISPLAY_NAME );
        name.setValue( config.getProject().getArtifactId() );
        result.addChild( name );
        return result;
    }
View Full Code Here


        {
            locationAttribute = EclipseWtpApplicationXMLWriter.XMLNS_SCHEMA_LOCATION;
        }
        result.setAttribute( locationAttribute,
                             "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" );
        result.addChild( new Xpp3Dom( EclipseWtpApplicationXMLWriter.APPLICATION_XML_DESCRIPTION ) );
        Xpp3Dom name = new Xpp3Dom( EclipseWtpApplicationXMLWriter.APPLICATION_XML_DISPLAY_NAME );
        name.setValue( this.config.getEclipseProjectName() );
        result.addChild( name );
        return result;
    }
View Full Code Here

                return detectClasspathEntryType((Xpp3Dom) o1) - detectClasspathEntryType((Xpp3Dom) o2);
            }
        });
        Xpp3Dom resultClasspath = new Xpp3Dom(CLASSPATH);
        for (int index = 0; index < children.length; index++) {
            resultClasspath.addChild(children[index]);
        }
        return resultClasspath;
    }

    /**
 
View Full Code Here

        result.setAttribute(XMLNS, "http://java.sun.com/xml/ns/j2ee");
        result.setAttribute(XMLNS_XSI, "http://www.w3.org/2001/XMLSchema-instance");
        result.setAttribute(XMLNS_SCHEMA_LOCATION,
                            "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_"
                            + jeeVersion.charAt(0) + "_" + jeeVersion.charAt(2) + ".xsd");
        result.addChild(new Xpp3Dom(APPLICATION_XML_DESCRIPTION));
        Xpp3Dom name = new Xpp3Dom(APPLICATION_XML_DISPLAY_NAME);
        name.setValue(config.getProject().getArtifactId());
        result.addChild(name);
        return result;
    }
View Full Code Here

        } else {
            locationAttribute = EclipseWtpApplicationXMLWriter.XMLNS_SCHEMA_LOCATION;
        }
        result.setAttribute(locationAttribute,
                            "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd");
        result.addChild(new Xpp3Dom(EclipseWtpApplicationXMLWriter.APPLICATION_XML_DESCRIPTION));
        Xpp3Dom name = new Xpp3Dom(EclipseWtpApplicationXMLWriter.APPLICATION_XML_DISPLAY_NAME);
        name.setValue(this.config.getEclipseProjectName());
        result.addChild(name);
        return result;
    }
View Full Code Here

    if (test.getSuite() != null) {
      Xpp3Dom suiteEl = suites.get(test.getSuite().hashCode());

      if (suiteEl != null) {
        suiteEl.addChild(element);
      } else {
        throw new ConcurrentModificationException("The test is being executed"
            + " before the related suite is created (test " + test.getName()
            + " on suite " + test.getSuite().getName() + ")");
      }
View Full Code Here

            dom.addChild( componentDom );

            for ( Xpp3Dom component : components.values() )
            {
                componentDom.addChild( component );
            }

            Xpp3DomWriter.write( writer, dom );
        }
        finally
View Full Code Here

        Xpp3Dom mConfigChild2 = new Xpp3Dom( "test2" );
        mConfigChild2.setValue( "value2" );

        Xpp3Dom mConfig = new Xpp3Dom( "configuration" );
        mConfig.addChild( mConfigChild );
        mConfig.addChild( mConfigChild2 );

        mPlugin.setConfiguration( mConfig );

        Build mBuild = new Build();
View Full Code Here

        Xpp3Dom mConfigChild2 = new Xpp3Dom( "test2" );
        mConfigChild2.setValue( "value2" );

        Xpp3Dom mConfig = new Xpp3Dom( "configuration" );
        mConfig.addChild( mConfigChild );
        mConfig.addChild( mConfigChild2 );

        mPlugin.setConfiguration( mConfig );

        Build mBuild = new Build();
        mBuild.addPlugin( mPlugin );
View Full Code Here

        Xpp3Dom pConfigChild = new Xpp3Dom( "test" );
        pConfigChild.setValue( "replacedValue" );

        Xpp3Dom pConfig = new Xpp3Dom( "configuration" );
        pConfig.addChild( pConfigChild );

        pPlugin.setConfiguration( pConfig );

        BuildBase pBuild = new BuildBase();
        pBuild.addPlugin( pPlugin );
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.