Javadoc fixes
[jabaws.git] / engine / compbio / engine / conf / PropertyHelperManager.java
index e8aa9a7..fb35362 100644 (file)
@@ -23,8 +23,6 @@ import java.io.IOException;
 import java.net.URISyntaxException;\r
 import java.net.URL;\r
 \r
-import javax.naming.ConfigurationException;\r
-\r
 import org.apache.log4j.Logger;\r
 \r
 import compbio.util.PropertyHelper;\r
@@ -52,7 +50,7 @@ public final class PropertyHelperManager {
         * \r
         * Try 1 - succeed.\r
         * \r
-        * @return\r
+        * @return an instance\r
         */\r
        public static PropertyHelper getPropertyHelper() {\r
                if (ph == null) {\r
@@ -66,8 +64,9 @@ public final class PropertyHelperManager {
                                ph = new PropertyHelper(locEngineProp, clustEngineProp,\r
                                                execProp);\r
                        } catch (IOException e) {\r
-                               log.warn("Cannot read property files! Reason: "\r
-                                               + e.getLocalizedMessage(), e.getCause());\r
+                               log.warn(\r
+                                               "Cannot read property files! Reason: "\r
+                                                               + e.getLocalizedMessage(), e.getCause());\r
                        }\r
                }\r
                return ph;\r
@@ -90,8 +89,9 @@ public final class PropertyHelperManager {
         * binaries WEB-INF classes compbio engine conf If the structure changes it\r
         * must be reflected in this method\r
         * \r
-        * @return\r
-        * @throws ConfigurationException\r
+        * @return the local path\r
+        * @throws RuntimeException\r
+        *             if cannot determine the local path\r
         */\r
        public static String getLocalPath() {\r
                String clname = PropertyHelperManager.class.getSimpleName();\r
@@ -111,11 +111,10 @@ public final class PropertyHelperManager {
                } catch (IllegalArgumentException e) {\r
                        // Classes are in the jar file, using different method to determine\r
                        // the path new File(INCORRECT URL) throws it\r
-                       log\r
-                                       .warn(\r
-                                                       "It looks like classes are in the jar file. "\r
-                                                                       + "Attempting a different method to determinine the path to the resources "\r
-                                                                       + e.getLocalizedMessage(), e.getCause());\r
+                       log.debug(\r
+                                       "It looks like classes are in the jar file. "\r
+                                                       + "Attempting a different method to determinine the path to the resources "\r
+                                                       + e.getLocalizedMessage(), e.getCause());\r
                        try {\r
                                f = new File(PropertyHelperManager.class.getProtectionDomain()\r
                                                .getCodeSource().getLocation().toURI().getPath());\r
@@ -128,8 +127,9 @@ public final class PropertyHelperManager {
                                        f = f.getParentFile();\r
                                }\r
                        } catch (URISyntaxException e1) {\r
-                               log.error("Could not find resources path! "\r
-                                               + e1.getLocalizedMessage(), e1.getCause());\r
+                               log.error(\r
+                                               "Could not find resources path! "\r
+                                                               + e1.getLocalizedMessage(), e1.getCause());\r
                                throw new RuntimeException("Could not find resources path! ",\r
                                                e1.getCause());\r
                        }\r