public class BundleListUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BundleListUtils.ArtifactDefinitionsCallback
Callback interface for use with initArtifactDefinitions.
|
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.interpolation.Interpolator |
createInterpolator(org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession mavenSession) |
static void |
initArtifactDefinitions(ClassLoader classLoader,
BundleListUtils.ArtifactDefinitionsCallback callback)
Initialize the artifact definitions using defaults inside the plugin JAR.
|
static void |
interpolateProperties(BundleList bundleList,
org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession mavenSession) |
static boolean |
isCurrentArtifact(org.apache.maven.project.MavenProject project,
ArtifactDefinition def) |
static boolean |
nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
String name,
boolean defaultValue) |
static int |
nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
String name,
int defaultValue) |
static String |
nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
String name,
String defaultValue) |
static BundleList |
readBundleList(File file) |
public static final void initArtifactDefinitions(ClassLoader classLoader, BundleListUtils.ArtifactDefinitionsCallback callback) throws IOException
IOException
- if the default properties can't be readorg.codehaus.plexus.util.xml.pull.XmlPullParserException
org.apache.maven.plugin.MojoExecutionException
public static boolean isCurrentArtifact(org.apache.maven.project.MavenProject project, ArtifactDefinition def)
public static BundleList readBundleList(File file) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public static int nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config, String name, int defaultValue)
public static boolean nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config, String name, boolean defaultValue)
public static String nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config, String name, String defaultValue)
public static void interpolateProperties(BundleList bundleList, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static org.codehaus.plexus.interpolation.Interpolator createInterpolator(org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession mavenSession)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.