You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:16:58 UTC
[sling-maven-launchpad-plugin] 05/22: SLING-2843 : Launchpad plugin
should check if configuration directory exists
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag maven-launchpad-plugin-2.3.0
in repository https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git
commit b032906f26cc72ab5eb2081b4b0cccae16367526
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Apr 29 05:39:40 2013 +0000
SLING-2843 : Launchpad plugin should check if configuration directory exists
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/maven/maven-launchpad-plugin@1476892 13f79535-47bb-0310-9956-ffa450edef68
---
.../sling/maven/projectsupport/PreparePackageMojo.java | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java b/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
index 5a541cd..a221434 100644
--- a/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
+++ b/src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java
@@ -304,12 +304,14 @@ public class PreparePackageMojo extends AbstractLaunchpadFrameworkMojo {
}
private void copyConfigurationFiles() throws MojoExecutionException {
- try {
- copyDirectory(this.getConfigDirectory(), new File(getOutputDirectory(), CONFIG_PATH_PREFIX), null, FileUtils.getDefaultExcludes());
- } catch (IOException e) {
- throw new MojoExecutionException("Unable to copy configuration files", e);
+ final File configDir = this.getConfigDirectory();
+ if (configDir.exists() ) {
+ try {
+ copyDirectory(configDir, new File(getOutputDirectory(), CONFIG_PATH_PREFIX), null, FileUtils.getDefaultExcludes());
+ } catch (IOException e) {
+ throw new MojoExecutionException("Unable to copy configuration files", e);
+ }
}
-
}
private void unpack(File source, File destination)
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.