This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag maven-launchpad-plugin-2.3.4
in repository 
https://gitbox.apache.org/repos/asf/sling-maven-launchpad-plugin.git

commit fd785a4fb3c89762be3b47f1cc2f960cf483df9b
Author: Carsten Ziegeler <[email protected]>
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
"[email protected]" <[email protected]>.

Reply via email to