Added cleanup listeners. Updated Fileupload and IO dependencies to fix occassional upload problems, and improve application cleanup.

git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2951 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2008-05-28 15:22:31 +00:00
parent 7e209122af
commit cc604e0ed3
8 changed files with 45 additions and 6 deletions

View File

@@ -507,7 +507,17 @@ public class ConfigurationManager
try
{
String configProperty = System.getProperty("dspace.configuration");
String configProperty = null;
try
{
configProperty = System.getProperty("dspace.configuration");
}
catch (SecurityException se)
{
// A security manager may stop us from accessing the system properties.
// This isn't really a fatal error though, so catch and ignore
log.warn("Unable to access system properties, ignoring.", se);
}
if (configFile != null)
{