Initial import.

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portal/portal-manager@81928 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-09-24 16:52:03 +00:00
parent 21c6dbb340
commit e53691d436
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class PortalContext {
private void initialize() {
Properties props = new Properties();
try {
String propertyfile = getGCoreFolder() + File.separator + "infrastructure.properties";
String propertyfile = getGCoreFolder() + File.separator + ".." + File.separator +"infrastructure.properties";
File propsFile = new File(propertyfile);
FileInputStream fis = new FileInputStream(propsFile);
props.load( fis);
@ -55,7 +55,7 @@ public class PortalContext {
catch(IOException e) {
infra = "gcube";
vos = "";
_log.error("infrastructure.properties file not found under $CATALINA_HOME/ dir, setting default infrastructure Name and no Scopes" + infra);
_log.error("infrastructure.properties file not found under $Portal Bundle/ dir, setting default infrastructure Name and no Scopes" + infra);
}
_log.info("PortalContext configurator correctly initialized on " + infra);
}