Skip to Content.
Sympa Menu

perfsonar-dev - r1699 - branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties

Subject: perfsonar development work

List archive

r1699 - branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties


Chronological Thread 
  • From:
  • To:
  • Subject: r1699 - branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties
  • Date: Thu, 19 Oct 2006 09:42:41 -0400

Author: loukik
Date: 2006-10-19 09:42:40 -0400 (Thu, 19 Oct 2006)
New Revision: 1699

Modified:

branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties/PropertiesConfigurationComponent.java
Log:
Small change because of some URL confusion.

Modified:
branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties/PropertiesConfigurationComponent.java
===================================================================
---
branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties/PropertiesConfigurationComponent.java
2006-10-19 13:42:24 UTC (rev 1698)
+++
branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties/PropertiesConfigurationComponent.java
2006-10-19 13:42:40 UTC (rev 1699)
@@ -46,9 +46,9 @@
public void initComponent() throws SystemException {

// bootstrapped absolute file location in catalina.properties file
- URL fileName =
this.getClass().getClassLoader().getResource("perfsonar/conf/service.properties");
-
- if(fileName==null) {
+ URL fileNameURL =
this.getClass().getClassLoader().getResource("perfsonar/conf/service.properties");
+
+ if(fileNameURL==null) {


System.out.println("PropertiesConfigurationComponent.initComponent:" +
" Missing or unable to locate service.properties file. Cannot
complete request.");
@@ -56,14 +56,16 @@
throw new
SystemException("PropertiesConfigurationComponent.initComponent:" +
" Missing or unable to locate service.properties file. Cannot
complete request.");
}
-
+
+ String fileName = fileNameURL.getFile();
+
System.out.println("PropertiesConfigurationComponent.initComponent:"
+
"Read the file name as: "+fileName);

// create a new file object with the read file name
try {

- file = new File(fileName.toString());
+ file = new File(fileName);

} catch(NullPointerException npe) {
throw new SystemException("PropertiesConfigurationComponent: "
@@ -79,7 +81,6 @@
}


-
// ------------------------------------------------ public methods





  • r1699 - branches/romradz-ant4rel-20061017/src/org/perfsonar/commons/auxiliary/components/configuration/properties, svnlog, 10/19/2006

Archive powered by MHonArc 2.6.16.

Top of Page