Tries to fix the build (tests).

cusax-fix
Lyubomir Marinov 14 years ago
parent 5986cc0119
commit 2864990fb3

@ -111,16 +111,19 @@ public TestConfigurationServicePersistency(String name)
*/
protected void setUp() throws Exception
{
String confDirName =
System.getProperty(
ConfigurationService.PNAME_SC_HOME_DIR_NAME,
".sip-communicator");
confFile = new File(System.getProperty("user.home")
+ File.separator
+ confDirName
+ File.separator
+ ourConfFileName);
String confDirLocation
= System.getProperty(
ConfigurationService.PNAME_SC_HOME_DIR_LOCATION,
System.getProperty("user.home"));
String confDirName
= System.getProperty(
ConfigurationService.PNAME_SC_HOME_DIR_NAME,
".sip-communicator");
confFile
= new File(
confDirLocation + File.separator + confDirName,
ourConfFileName);
configurationService.purgeStoredConfiguration();
originalConfFileName
@ -130,6 +133,11 @@ protected void setUp() throws Exception
ConfigurationService.PNAME_CONFIGURATION_FILE_NAME,
ourConfFileName);
/*
* We're going to (attempt to) create a new file so (try to) make sure
* the parent directory exists.
*/
confFile.getParentFile().mkdir();
confFile.createNewFile();
FileOutputStream out = new FileOutputStream(confFile);

Loading…
Cancel
Save