airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1429142 - /airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java
Date Fri, 04 Jan 2013 21:42:16 GMT
Author: lahiru
Date: Fri Jan  4 21:42:15 2013
New Revision: 1429142

URL: http://svn.apache.org/viewvc?rev=1429142&view=rev
Log:
fixing error during startup with tomcat.

Modified:
    airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java

Modified: airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java?rev=1429142&r1=1429141&r2=1429142&view=diff
==============================================================================
--- airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java
(original)
+++ airavata/trunk/modules/registry/registry-api/src/main/java/org/apache/airavata/registry/api/util/RegistrySettings.java
Fri Jan  4 21:42:15 2013
@@ -41,7 +41,8 @@ public class RegistrySettings {
     
     static{
     	String propertyFileName = REPOSITORY_PROPERTIES;
-    	if (!((new File(propertyFileName)).exists())) {
+    	if (RegistrySettings.class.getClassLoader()
+				.getResource(propertyFileName) == null) {
     		if (AiravataUtils.isServer()){
         		propertyFileName=SERVER_REPOSITORY_PROPERTIES;
         	}else{



Mime
View raw message