code: private Path getTempDir() {
      if (this.tempDir == null) {
        if (this.dir != null) {
          this.tempDir = dir;
        } else {
          this.tempDir = getProject().getBaseDir().toPath();
        }
      }
      return tempDir;
    }
docs: Resolve temporary folder.