Beispiel #1
0
  private void initLocalDirectories() {

    if (getUser() != null) {

      String localWorkspace = Settings.getInstance().getLocalWorkspace(getUser().getUsername());

      String directory = FileUtil.path(localWorkspace, "output", getId());
      FileUtil.createDirectory(directory);
    }
  }
Beispiel #2
0
  public String getLogOutFile() {

    if (getUser() != null) {

      String localWorkspace = Settings.getInstance().getLocalWorkspace(getUser().getUsername());

      return FileUtil.path(localWorkspace, "output", getId(), "job.txt");

    } else {

      return "";
    }
  }