public abstract class AbstractUsingBundleListMojo extends AbstractBundleListMojo
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BUNDLE_PATH_PREFIX |
protected static String |
CONFIG_PATH_PREFIX |
protected ArtifactDefinition |
defaultBundleList
The definition of the defaultBundleList artifact.
|
protected static String |
JAR
JAR Packaging type.
|
protected org.apache.maven.shared.filtering.MavenFileFilter |
mavenFileFilter |
protected static String |
WAR
WAR Packaging type.
|
bundleListFile, commonSlingBootstrap, commonSlingProps, ignoreBundleListConfig, mavenSession, PARTIAL, project, projectHelper, standaloneSlingBootstrap, standaloneSlingProps, webappSlingBootstrap, webappSlingProps| Constructor and Description |
|---|
AbstractUsingBundleListMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
executeWithArtifacts()
Execute the logic of the plugin after the default artifacts have been
initialized.
|
protected File |
getConfigDirectory() |
protected BundleList |
getInitializedBundleList() |
protected String |
getSlingBootstrap(boolean standalone)
Try to read the bootstrap command file and return its content
The filter is copied to a tmp location to apply filtering.
|
protected Properties |
getSlingProperties(boolean standalone) |
protected void |
initArtifactDefinitions(Properties dependencies)
Hook methods for subclasses to initialize any additional artifact
definitions.
|
protected void |
initBundleList(BundleList bundleList)
Hook methods for subclasses to initialize the bundle list.
|
protected static boolean |
shouldCopy(File source,
File dest) |
copyDirectory, getArtifact, getArtifactprotected static final String JAR
protected static final String WAR
protected static final String CONFIG_PATH_PREFIX
protected static final String BUNDLE_PATH_PREFIX
@Parameter protected ArtifactDefinition defaultBundleList
@Component protected org.apache.maven.shared.filtering.MavenFileFilter mavenFileFilter
public final void execute()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected File getConfigDirectory()
getConfigDirectory in class AbstractBundleListMojoprotected abstract void executeWithArtifacts()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected BundleList getInitializedBundleList()
protected void initArtifactDefinitions(Properties dependencies)
dependencies - the dependency properties loaded from the JAR fileprotected void initBundleList(BundleList bundleList)
protected Properties getSlingProperties(boolean standalone) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getSlingBootstrap(boolean standalone) throws org.apache.maven.plugin.MojoExecutionException
nullorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.