Package org.codehaus.plexus.util.xml

Examples of org.codehaus.plexus.util.xml.PrettyPrintXMLWriter.writeText()


            XMLWriter writer = new PrettyPrintXMLWriter( w, "UTF-8", null );

            writer.startElement( MYECLIPSE_STRUTS_PROPERTIES );

            writer.startElement( MYECLIPSE_STRUTS_VERSION );
            writer.writeText( getStrutsVersion() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_BASE_PACKAGE );
            writer.writeText( getBasePackage() );
            writer.endElement();
View Full Code Here


            writer.startElement( MYECLIPSE_STRUTS_VERSION );
            writer.writeText( getStrutsVersion() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_BASE_PACKAGE );
            writer.writeText( getBasePackage() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_PATTERN );
            writer.writeText( getStrutsPattern() );
            writer.endElement();
View Full Code Here

            writer.startElement( MYECLIPSE_STRUTS_BASE_PACKAGE );
            writer.writeText( getBasePackage() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_PATTERN );
            writer.writeText( getStrutsPattern() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_SERVLET_NAME );
            writer.writeText( getStrutsServletName() );
            writer.endElement();
View Full Code Here

            writer.startElement( MYECLIPSE_STRUTS_PATTERN );
            writer.writeText( getStrutsPattern() );
            writer.endElement();

            writer.startElement( MYECLIPSE_STRUTS_SERVLET_NAME );
            writer.writeText( getStrutsServletName() );
            writer.endElement();

            // Close <MyEclipseStrutsProperties>
            writer.endElement();
View Full Code Here

        XMLWriter writer = new PrettyPrintXMLWriter(w, "UTF-8", null);

        writer.startElement("projectDescription"); //$NON-NLS-1$

        writer.startElement(ELT_NAME);
        writer.writeText(config.getEclipseProjectName());
        writer.endElement();

        addComment(writer, config.getProject().getDescription());

        writer.startElement("projects"); //$NON-NLS-1$
View Full Code Here

                IdeDependency dep = dependencies[j];
                // Avoid duplicates entries when same project is refered using multiple types
                // (ejb, test-jar ...)
                if (dep.isReferencedProject() && !duplicates.contains(dep.getEclipseProjectName())) {
                    writer.startElement("project"); //$NON-NLS-1$
                    writer.writeText(dep.getEclipseProjectName());
                    writer.endElement();
                    duplicates.add(dep.getEclipseProjectName());
                }
            }
        }
View Full Code Here

        writer.startElement(ELT_NATURES);

        for (Iterator it = projectnatures.iterator(); it.hasNext(); ) {
            writer.startElement(ELT_NATURE);
            writer.writeText((String) it.next());
            writer.endElement(); // name
        }

        writer.endElement(); // natures
View Full Code Here

        writer.startElement(MYECLIPSE_SPRING_BEANS_PROJECT_DESCRIPTION);
        // Configuration extension
        writer.startElement(MYECLIPSE_SPRING_CONFIG_EXTENSIONS);
        writer.startElement(MYECLIPSE_SPRING_CONFIG_EXTENSION);
        writer.writeText("xml");
        writer.endElement();
        writer.endElement();

        // Configuration files
        writer.startElement(MYECLIPSE_SPRING_CONFIGS);
View Full Code Here

            String onConfigFileName = (String) onConfigFiles.next();
            File onConfigFile = new File(onConfigFileName);
            String relativeFileName = IdeUtils.toRelativeAndFixSeparator(basedir, onConfigFile, false);

            writer.startElement(MYECLIPSE_SPRING_CONFIG);
            writer.writeText(relativeFileName);
            writer.endElement();
        }
        writer.endElement();

        // Configuration sets
View Full Code Here

        writer.startElement(MYECLIPSE_SPRING_CONFIGSETS);
        writer.endElement();

        // Spring version
        writer.startElement(MYECLIPSE_SPRING_VERSION);
        writer.writeText((String) springConfig.get("version"));
        writer.endElement();

        writer.endElement();

        IOUtil.close(springFileWriter);
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.