This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag slingstart-maven-plugin-1.0.0 in repository https://gitbox.apache.org/repos/asf/sling-slingstart-maven-plugin.git
commit 8fb99d7aca95501c6b13612247f3ea00b33428f7 Author: Carsten Ziegeler <[email protected]> AuthorDate: Wed Oct 8 18:43:36 2014 +0000 Make prepare mojo subclassable git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/slingstart-maven-plugin@1630197 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/sling/maven/slingstart/PreparePackageMojo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/maven/slingstart/PreparePackageMojo.java b/src/main/java/org/apache/sling/maven/slingstart/PreparePackageMojo.java index e29620f..e1e4725 100644 --- a/src/main/java/org/apache/sling/maven/slingstart/PreparePackageMojo.java +++ b/src/main/java/org/apache/sling/maven/slingstart/PreparePackageMojo.java @@ -97,6 +97,10 @@ public class PreparePackageMojo extends AbstractSlingStartMojo { this.prepareWebapp(model); } + protected File getStandaloneOutputDirectory() { + return new File(this.project.getBuild().getOutputDirectory()); + } + /** * Prepare the global map for the artifacts. */ @@ -115,7 +119,7 @@ public class PreparePackageMojo extends AbstractSlingStartMojo { this.project.setContextValue(BuildConstants.CONTEXT_STANDALONE, contentsMap); // unpack base artifact and create settings - final File outputDir = new File(this.project.getBuild().getOutputDirectory()); + final File outputDir = getStandaloneOutputDirectory(); unpackBaseArtifact(model, outputDir, ModelConstants.RUN_MODE_STANDALONE); this.buildSettings(model, ModelConstants.RUN_MODE_STANDALONE, outputDir); this.buildBootstrapFile(model, ModelConstants.RUN_MODE_STANDALONE, outputDir); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
