org.apache.sling.maven.projectsupport
Class BundleListUtils
java.lang.Object
org.apache.sling.maven.projectsupport.BundleListUtils
public class BundleListUtils
- extends java.lang.Object
Miscellaneous helper methods for working with bundle lists.
Method Summary |
static org.codehaus.plexus.interpolation.Interpolator |
createInterpolator(org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession mavenSession)
|
static void |
initArtifactDefinitions(java.lang.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,
java.lang.String name,
boolean defaultValue)
|
static int |
nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
java.lang.String name,
int defaultValue)
|
static java.lang.String |
nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
java.lang.String name,
java.lang.String defaultValue)
|
static BundleList |
readBundleList(java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initArtifactDefinitions
public static final void initArtifactDefinitions(java.lang.ClassLoader classLoader,
BundleListUtils.ArtifactDefinitionsCallback callback)
throws java.io.IOException
- Initialize the artifact definitions using defaults inside the plugin JAR.
- Throws:
java.io.IOException
- if the default properties can't be read
org.codehaus.plexus.util.xml.pull.XmlPullParserException
org.apache.maven.plugin.MojoExecutionException
isCurrentArtifact
public static boolean isCurrentArtifact(org.apache.maven.project.MavenProject project,
ArtifactDefinition def)
readBundleList
public static BundleList readBundleList(java.io.File file)
throws java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Throws:
java.io.IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
nodeValue
public static int nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
java.lang.String name,
int defaultValue)
nodeValue
public static boolean nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
java.lang.String name,
boolean defaultValue)
nodeValue
public static java.lang.String nodeValue(org.codehaus.plexus.util.xml.Xpp3Dom config,
java.lang.String name,
java.lang.String defaultValue)
interpolateProperties
public static void interpolateProperties(BundleList bundleList,
org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession mavenSession)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createInterpolator
public static org.codehaus.plexus.interpolation.Interpolator createInterpolator(org.apache.maven.project.MavenProject project,
org.apache.maven.execution.MavenSession mavenSession)
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.