Ejemplo n.º 1
0
 @Override
 protected Lease decideWorkspace(Node n, WorkspaceList wsl)
     throws InterruptedException, IOException {
   return wsl.allocate(
       getModuleSetBuild().getModuleRoot().child(getProject().getRelativePath()));
 }
Ejemplo n.º 2
0
 /**
  * Allocates the workspace from {@link WorkspaceList}.
  *
  * @param n Passed in for the convenience. The node where the build is running.
  * @param wsl Passed in for the convenience. The returned path must be registered to this
  *     object.
  */
 protected Lease decideWorkspace(Node n, WorkspaceList wsl)
     throws InterruptedException, IOException {
   // TODO: this cast is indicative of abstraction problem
   return wsl.allocate(n.getWorkspaceFor((TopLevelItem) getProject()));
 }