|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.ant.AntBuildWriterUtil
public class AntBuildWriterUtil
Utility class for the AntBuildWriter class.
| Constructor Summary | |
|---|---|
AntBuildWriterUtil()
|
|
| Method Summary | |
|---|---|
static void |
addWrapAttribute(org.codehaus.plexus.util.xml.XMLWriter writer,
String tag,
String name,
String value,
int indent)
Convenience method to wrap long element tags for a given attribute. |
static String |
getMavenCompilerPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-compiler-plugin" plugin. |
static Map |
getMavenCompilerPluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the map of optionName value defined in a project for the "maven-compiler-plugin" plugin. |
static Map[] |
getMavenCompilerPluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return an array of map of optionName value defined in a project for the "maven-compiler-plugin" plugin. |
static String |
getMavenEarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-ear-plugin" plugin. |
static String |
getMavenJarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-jar-plugin" plugin. |
static String |
getMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-javadoc-plugin" plugin. |
static Map |
getMavenJavadocPluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return a map of optionName value defined in a project for the "maven-javadoc-plugin" plugin. |
static Map[] |
getMavenJavadocPluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return an array of map of optionName value defined in a project for the "maven-javadoc-plugin" plugin. |
static String |
getMavenSurefirePluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-surefire-plugin" plugin. |
static Map |
getMavenSurefirePluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the map of optionName value defined in a project for the "maven-surefire-plugin" plugin. |
static Map[] |
getMavenSurefirePluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return an array of map of optionName value defined in a project for the "maven-surefire-plugin" plugin. |
static String |
getMavenWarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
Return the optionName value defined in a project for the "maven-war-plugin" plugin. |
static boolean |
isBundlePackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isEarPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isEjbPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isJarPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isMavenPluginPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isPomPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static boolean |
isWarPackaging(org.apache.maven.project.MavenProject mavenProject)
|
static List |
removeEmptyCompileSourceRoots(List compileSourceRoots)
|
static void |
writeAntTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
String moduleSubPath,
String tasks)
Convenience method to write XML ant task |
static void |
writeAntVersionHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comment for the Ant supported version |
static void |
writeEarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper artifactResolverWrapper)
Convenience method to write XML Ant ear task |
static void |
writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
Write comments in the Ant build file header |
static void |
writeIncludesExcludes(org.codehaus.plexus.util.xml.XMLWriter writer,
List includes,
List excludes)
Convenience method to write <include/> and <exclude/> |
static void |
writeJarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project)
Convenience method to write XML Ant jar task |
static void |
writeJavadocTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper wrapper)
Convenience method to write XML Ant javadoc task |
static void |
writeWarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper artifactResolverWrapper)
Convenience method to write XML Ant war task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntBuildWriterUtil()
| Method Detail |
|---|
public static List removeEmptyCompileSourceRoots(List compileSourceRoots)
compileSourceRoots -
public static void writeIncludesExcludes(org.codehaus.plexus.util.xml.XMLWriter writer,
List includes,
List excludes)
<include/> and <exclude/>
writer - not nullincludes - excludes - public static void writeHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
writer - public static void writeAntVersionHeader(org.codehaus.plexus.util.xml.XMLWriter writer)
writer -
public static void writeAntTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
String moduleSubPath,
String tasks)
writer - not nullproject - not nullmoduleSubPath - not nulltasks - not null
public static void writeJavadocTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper wrapper)
throws IOException
writer - not nullproject - not nullwrapper - not null
IOException - if any
public static void writeJarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project)
throws IOException
writer - not nullproject - not null
IOException - if any
public static void writeEarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper artifactResolverWrapper)
throws IOException
writer - not nullproject - not nullartifactResolverWrapper - not null
IOException - if any
public static void writeWarTask(org.codehaus.plexus.util.xml.XMLWriter writer,
org.apache.maven.project.MavenProject project,
ArtifactResolverWrapper artifactResolverWrapper)
throws IOException
writer - not nullproject - not nullartifactResolverWrapper - not null
IOException - if any
public static void addWrapAttribute(org.codehaus.plexus.util.xml.XMLWriter writer,
String tag,
String name,
String value,
int indent)
writer - not nulltag - not nullname - not nullvalue - not nullindent - positive valuepublic static boolean isPomPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject - not null
pompublic static boolean isJarPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject -
jar, maven-plugin, ejb, or
bundlepublic static boolean isBundlePackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject -
bundlepublic static boolean isEjbPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject -
ejbpublic static boolean isMavenPluginPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject -
maven-pluginpublic static boolean isEarPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject -
earpublic static boolean isWarPackaging(org.apache.maven.project.MavenProject mavenProject)
mavenProject - not null
war
public static String getMavenCompilerPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-compiler-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map getMavenCompilerPluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-compiler-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map[] getMavenCompilerPluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-compiler-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static String getMavenSurefirePluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-surefire-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map getMavenSurefirePluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-surefire-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map[] getMavenSurefirePluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-surefire-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static String getMavenJavadocPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-javadoc-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map getMavenJavadocPluginOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-javadoc-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static Map[] getMavenJavadocPluginOptions(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-javadoc-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static String getMavenJarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-jar-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static String getMavenEarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-ear-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
public static String getMavenWarPluginBasicOption(org.apache.maven.project.MavenProject project,
String optionName,
String defaultValue)
throws IOException
optionName value defined in a project for the "maven-war-plugin" plugin.
project - not nulloptionName - the option name wanteddefaultValue - a default value
IOException - if any
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||