public abstract class AbstractEffectiveMojo extends AbstractHelpMojo
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractEffectiveMojo.SortedProperties
Properties which provides a sorted keySet().
|
LINE_LENGTH, output
Constructor and Description |
---|
AbstractEffectiveMojo() |
Modifier and Type | Method and Description |
---|---|
protected static String |
addMavenNamespace(String effectiveXml,
boolean isPom)
Add a Pom/Settings namespaces to the effective XML content.
|
protected static void |
writeComment(org.codehaus.plexus.util.xml.XMLWriter writer,
String comment)
Write comments in a normalize way.
|
protected static void |
writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comments in the Effective POM/settings header.
|
protected static void |
writeXmlFile(File output,
String content,
String encoding)
Utility method to write an XML content in a given file.
|
writeFile, writeFile
getLog, getPluginContext, setLog, setPluginContext
protected static void writeXmlFile(File output, String content, String encoding) throws IOException
output
- is the wanted output file.content
- contains the XML content to be written to the file.encoding
- is the wanted encoding to use when writing file.IOException
- if anyif encoding is null.
protected static void writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
writer
- not nullprotected static void writeComment(org.codehaus.plexus.util.xml.XMLWriter writer, String comment)
writer
- not nullcomment
- not nullprotected static String addMavenNamespace(String effectiveXml, boolean isPom)
effectiveXml
- not null the effective POM or SettingsisPom
- if true
add the Pom xsd url, otherwise add the settings xsd url.effective
if an error occurred.POM_XSD_URL
,
SETTINGS_XSD_URL
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.