Author: massi
Date: Mon Aug 11 10:09:36 2014
New Revision: 1617236

URL: http://svn.apache.org/r1617236
Log:
Little bugfix #SYNCOPE-143

Modified:
    
syncope/branches/1_2_X/installer/src/main/java/org/apache/syncope/installer/processes/ArchetypeProcess.java

Modified: 
syncope/branches/1_2_X/installer/src/main/java/org/apache/syncope/installer/processes/ArchetypeProcess.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_2_X/installer/src/main/java/org/apache/syncope/installer/processes/ArchetypeProcess.java?rev=1617236&r1=1617235&r2=1617236&view=diff
==============================================================================
--- 
syncope/branches/1_2_X/installer/src/main/java/org/apache/syncope/installer/processes/ArchetypeProcess.java
 (original)
+++ 
syncope/branches/1_2_X/installer/src/main/java/org/apache/syncope/installer/processes/ArchetypeProcess.java
 Mon Aug 11 10:09:36 2014
@@ -42,24 +42,22 @@ public class ArchetypeProcess {
         final String syncopeAdminPassword = args[10];
 
         final FileSystemUtils fileSystemUtils = new FileSystemUtils(handler);
-
         if (!new File(installPath).exists()) {
             fileSystemUtils.createDirectory(installPath, null);
             InstallLog.initialize(installPath, handler);
+        } else {
+            InstallLog.initialize(installPath, handler);
         }
 
         final MavenUtils mavenUtils = new MavenUtils(mavenDir, handler);
-
         mavenUtils.archetypeGenerate(
                 syncopeVersion, groupId, artifactId, secretKey, anonymousKey, 
installPath);
 
         fileSystemUtils.writeToFile(new File(installPath + "/" + artifactId + 
Pom.PATH),
                 String.format(Pom.FILE, syncopeVersion, syncopeVersion, 
groupId, artifactId));
-
         fileSystemUtils.createDirectory(confDirectory, null);
         fileSystemUtils.createDirectory(logsDirectory, null);
         fileSystemUtils.createDirectory(bundlesDirectory, null);
-
         mavenUtils.createPackage(installPath + "/" + artifactId, 
confDirectory, logsDirectory, bundlesDirectory);
     }
 


Reply via email to