Exemplo n.º 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);
    }
  }
Exemplo n.º 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 "";
    }
  }