public String identify() { StringBuilder sb = new StringBuilder( 256 ); sb.append( executionId ); sb.append( configuration.toString() ); return sb.toString(); }
ListItem( Xpp3Dom xml ) { this.value = null; this.xml = xml.toString().replaceFirst( "<?.*?>\\s*", "" ); }
protected String getAttribute(Xpp3Dom tag, String attributeName) { Xpp3Dom attributeDom = tag.getChild(attributeName); checkState(attributeDom != null, format("'%s' element not declared at '%s' in the pom file of the artifact '%s'", attributeName, tag.toString(), artifactFolder.getName())); String attributeValue = attributeDom.getValue().trim(); checkState(!isEmpty(attributeValue), format("'%s' was defined but has an empty value at '%s' declared in the pom file of the artifact %s", attributeName, tag.toString(), artifactFolder.getName())); return attributeValue; }
ListItem( Xpp3Dom xml ) { this.value = null; this.xml = xml.toString().replaceFirst( "<?.*?>\\s*", "" ); }
ListItem( Xpp3Dom xml ) { this.value = null; this.xml = xml.toString().replaceFirst( "<?.*?>\\s*", "" ); }
protected static String getAttribute(org.codehaus.plexus.util.xml.Xpp3Dom tag, String attributeName) { org.codehaus.plexus.util.xml.Xpp3Dom attributeDom = tag.getChild(attributeName); checkState(attributeDom != null, format("'%s' element not declared at '%s' in the pom file", attributeName, tag.toString())); String attributeValue = attributeDom.getValue().trim(); checkState(!isEmpty(attributeValue), format("'%s' was defined but has an empty value at '%s' declared in the pom file", attributeName, tag.toString())); return attributeValue; }
protected static Model getSupplement(Log log, Xpp3Dom supplementModelXml) throws MojoExecutionException { MavenXpp3Reader modelReader = new MavenXpp3Reader(); Model model = null; try { model = modelReader.read(new StringReader(supplementModelXml.toString())); String groupId = model.getGroupId(); String artifactId = model.getArtifactId(); if (groupId == null || "".equals(groupId.trim())) { throw new MojoExecutionException( "Supplemental project XML requires that a <groupId> element be present."); } if (artifactId == null || "".equals(artifactId.trim())) { throw new MojoExecutionException( "Supplemental project XML requires that a <artifactId> element be present."); } } catch (IOException e) { log.warn("Unable to read supplemental XML: " + e.getMessage(), e); } catch (XmlPullParserException e) { log.warn("Unable to parse supplemental XML: " + e.getMessage(), e); } return model; }
logger.warn( "Could not interpret entry: " + aVm.toString() );
StringInputStream stringInputStream = new StringInputStream( pluginConf.toString() ); Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse( stringInputStream );
+ reactorProject.getGroupId() + " found " + warDefinition.toString() );
getLog().debug(MessageFormat.format(Messages.AbstractSarlMojo_3, plugin.getId(), configurationXml.toString()));
log.info(itconfig.toString());
"not set):"); PluginExtractor.extractEligibleConfigurationForGoal(mojo, plugin, TEST_COMPILE_GOAL, configuration); mojo.getLog().debug(configuration.toString());
log.info(config.toString());
mojo.getLog().debug("Loading maven-compiler-plugin configuration:"); PluginExtractor.extractEligibleConfigurationForGoal(mojo, plugin, COMPILE_GOAL, configuration); mojo.getLog().debug(configuration.toString());
String theXml = config.getChild(0).toString(); WebXml webXml = WebXmlIo.parseWebXml( new ByteArrayInputStream(theXml.getBytes("UTF-8")), null);
public void runUnitTests(Map<String, Object> systemProperties, String excludedGroups, final String category) throws MojoExecutionException { final Element systemProps = convertPropsToElements(systemProperties); final Xpp3Dom config = configuration( systemProps, element(name("excludes"), element(name("exclude"), REGEX_INTEGRATION_TESTS), element(name("exclude"), "**/*$*")), element(name("excludedGroups"), excludedGroups) ); if (isRelevantCategory(category)) { appendJunitCategoryToConfiguration(category, config); } String version = defaultArtifactIdToVersionMap.get("maven-surefire-plugin"); log.info("Surefire " + version + " test configuration:"); log.info(config.toString()); MojoUtils.executeWithMergedConfig( plugin( groupId("org.apache.maven.plugins"), artifactId("maven-surefire-plugin"), version(version) ), goal("test"), config, executionEnvironment() ); }
} else { getLog().debug("Loading maven-surefire-plugin configuration:"); getLog().debug(configuration.toString());
if (logger.isDebugEnabled()) { logger.debug("target-platform-configuration for " + project.toString() + ":\n" + configuration.toString());