svn commit: r647391 - /ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r647391 - /ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

jleroux@apache.org
Author: jleroux
Date: Sat Apr 12 00:40:37 2008
New Revision: 647391

URL: http://svn.apache.org/viewvc?rev=647391&view=rev
Log:
Prevent possibility to create a non existing geronimo_home directory.

Modified:
    ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java

Modified: ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java?rev=647391&r1=647390&r2=647391&view=diff
==============================================================================
--- ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java (original)
+++ ofbiz/trunk/framework/appserver/src/org/ofbiz/appservers/GenerateContainer.java Sat Apr 12 00:40:37 2008
@@ -135,12 +135,12 @@
                     Debug.logFatal("'GERONIMO_HOME' was not found in your environment. Please set the location of Geronimo into a GERONIMO_HOME env var or as a geronimoHome property in setup.properties file.", module);
                     throw new ContainerException("Error in Geronimo deployment, please check the log");
                 }
+            }
                 File geronimoHomeDir = new File (geronimoHome);
                 if (! (geronimoHomeDir.isDirectory())) {
                     Debug.logFatal(geronimoHome + " does not exist or is not a directoy. Please set the location of Geronimo into a GERONIMO_HOME env var or as a geronimoHome property in setup.properties file.", module);
                     throw new ContainerException("Error in Geronimo deployment, please check the log");
                 }
-            }
 
             for(int inst = 0; inst <= instancesNumber; inst++) {
                 instanceNumber = (inst == 0 ? "" : inst).toString();