Changeset 490


Ignore:
Timestamp:
10/23/13 16:01:15 (11 years ago)
Author:
davidb
Message:

Support for specifying where expeditee home should be through the self-named java Property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/UserSettings.java

    r427 r490  
    7373        // add default values
    7474        static {
    75                 String jarPath = getJarLocation();
    76                 if (jarPath != null){
     75                String expeditee_home = System.getProperty("expeditee.home");
     76
     77                if (expeditee_home != null) {
     78                    FrameIO.changeParentFolder(expeditee_home + File.separator);
     79                }
     80                else {
     81                    String jarPath = getJarLocation();
     82
     83                    if (jarPath != null){
    7784                        FrameIO.changeParentFolder(jarPath);
     85                    }
     86                    else {
     87
     88                        FrameIO.changeParentFolder("." + File.separator + "expeditee"
     89                                                   + File.separator);
     90                    }
    7891                }
    79                 else
    80                         FrameIO.changeParentFolder("." + File.separator + "expeditee"
    81                                         + File.separator);
    8292
    8393                UserSettings.FrameDirs.add(FrameIO.FRAME_PATH);
Note: See TracChangeset for help on using the changeset viewer.