perfsonar-dev - [GEANT/SA2/ps-java-services] r5657 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5657 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5657 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration
- Date: Wed, 19 May 2010 14:40:24 +0100
Author: psnc.pietrzak
Date: 2010-05-19 14:40:24 +0100 (Wed, 19 May 2010)
New Revision: 5657
Modified:
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
Log:
Bug fix. When the service directory did contain the space in its name, the
space was converted to %20 which caused the FileNotFoundException to be
thrown on opening the configuration.xml.template file.
Modified:
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
===================================================================
---
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
2010-05-19 13:38:49 UTC (rev 5656)
+++
trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration/MigratorComponent.java
2010-05-19 13:40:24 UTC (rev 5657)
@@ -104,7 +104,7 @@
}
private String getFullPath(String fileName) throws URISyntaxException
{
- return
Thread.currentThread().getContextClassLoader().getResource("perfsonar" +
File.separator + "conf" + File.separator + fileName).getPath();
+ return new
File(Thread.currentThread().getContextClassLoader().getResource("perfsonar" +
File.separator + "conf" + File.separator +
fileName).toURI()).getAbsolutePath();
}
private URL getDefaultConfigDirectory() {
return
Thread.currentThread().getContextClassLoader().getResource("perfsonar" +
File.separator + "conf");
- [GEANT/SA2/ps-java-services] r5657 - trunk/perfsonar-java-base2/src/main/java/org/perfsonar/base2/service/configuration/migration, svn-noreply, 05/19/2010
Archive powered by MHonArc 2.6.16.