/** * Returns the root element of an addon's configuration file. * * @param clazz which owns the configuration * @return the configuration root element */ public static Element getConfiguration(final Class<?> clazz) { return getRootElement(clazz, "configuration.xml"); }
XmlUtils.getRootElement(this.getClass(), "properties.xml")); break; .getRootElement(this.getClass(), "properties-axis.xml")); break;
XmlUtils.getRootElement(this.getClass(), "dependencies-import-axistools-plugin.xml"));
"/codegen-plugin/plugin", XmlUtils.getRootElement( this.getClass(), "dependencies-import-codegen-plugin.xml"));
/** * Installs Java2ws plugin into the pom.xml from a template. */ protected void addPlugin() { // Get the plugin from the template and write into de project (pom.xml) getProjectOperations().updateBuildPlugin( getProjectOperations().getFocusedModuleName(), new Plugin(XmlUtils.findFirstElement("/jaxws-plugin/plugin", XmlUtils.getRootElement(this.getClass(), "dependencies-export-jaxws-plugin.xml")))); // What is this for ? getFileManager().commit(); }
/** * Install wsdl2java maven plugin in pom.xml */ public void installWsdl2javaPlugin() { // Add plugin and write this modifications to disk getProjectOperations().updateBuildPlugin( getProjectOperations().getFocusedModuleName(), new Plugin(XmlUtils.findFirstElement( "/cxf-codegen/cxf-codegen-plugin/plugin", XmlUtils.getRootElement(this.getClass(), "dependencies-export-wsdl2java-plugin.xml")))); getFileManager().commit(); }
final Element configuration = XmlUtils.getRootElement(getClass(), "tiles/configuration.xml");