Ignore:
Timestamp:
2001-04-04T11:29:46+12:00 (23 years ago)
Author:
say1
Message:

fixed properties problem. saving IORs and properties in the users home directory. ChangeLog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/util/NzdlServiceFactory.java

    r2269 r2277  
    181181         
    182182      try {
    183       File file = new File(propertiesFileName);
     183    String dir = System.getProperties().getProperty("user.home");
     184    String sep = System.getProperties().getProperty("file.separator");
     185   
     186    File file = new File(dir + sep + propertiesFileName);
    184187    if (file.exists()) {
    185188      knownIORs.load(new FileInputStream(file));
     
    203206      File file = new File(propertiesFileName);
    204207      try {
    205     knownIORs.store(new FileOutputStream(file),
     208      String dir = System.getProperties().getProperty("user.home");
     209      String sep = System.getProperties().getProperty("file.separator");
     210
     211    knownIORs.store(new FileOutputStream(dir + sep + file),
    206212            "NZDL IOR's see: org.nzdl.gsdl.util.NzdlServiceFactory");
    207213      } catch (IOException i) {
Note: See TracChangeset for help on using the changeset viewer.