Changeset 3195


Ignore:
Timestamp:
Mar 14, 2007, 3:43:45 PM (15 years ago)
Author:
Johan Enell
Message:

Fixes #511

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.3/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java

    r3108 r3195  
    5858import net.sf.basedb.core.Transformation;
    5959import net.sf.basedb.core.Type;
     60import net.sf.basedb.core.User;
    6061import net.sf.basedb.core.plugin.About;
    6162import net.sf.basedb.core.plugin.AboutImpl;
     
    864865        }
    865866      }
    866       String homeDirectoryPath = "";
     867      String homeDirectoryPath = "/" + PluginConfiguration.getById(dc, configuration.getId()).getName();
    867868      Directory homeDirectory = experiment.getDirectory();
    868       if (homeDirectory == null)
    869       {
    870         homeDirectoryPath = homeDirectory.getPath() + "/" + PluginConfiguration.getById(dc, configuration.getId()).getName();
     869      if (homeDirectory != null)
     870      {
     871        homeDirectoryPath = homeDirectory.getPath() + homeDirectoryPath;
     872      }
     873      else
     874      {
     875        homeDirectory = User.getById(dc, sc.getLoggedInUserId()).getHomeDirectory();
     876        if (homeDirectory != null)
     877        {
     878          homeDirectoryPath = homeDirectory.getPath() + homeDirectoryPath;
     879        }
    871880      }
    872881      pluginDirectoryParameter = new PluginParameter<String>(
Note: See TracChangeset for help on using the changeset viewer.