Package hudson

Examples of hudson.FilePath.child()


                    return;
                }

                if(ws.child(value).exists()) {
                    if (expectingFile) {
                        if(!ws.child(value).isDirectory())
                            ok();
                        else
                            error(value+" is not a file");
                    } else {
                        if(ws.child(value).isDirectory())
View Full Code Here


                        if(!ws.child(value).isDirectory())
                            ok();
                        else
                            error(value+" is not a file");
                    } else {
                        if(ws.child(value).isDirectory())
                            ok();
                        else
                            error(value+" is not a directory");
                    }
                } else {
View Full Code Here

            dir.act(new ChmodRecAPlusX());
        }
        if (subdir == null) {
            return dir;
        } else {
            return dir.child(subdir);
        }
    }

    @Extension
    public static class DescriptorImpl extends ToolInstallerDescriptor<ZipExtractionInstaller> {
View Full Code Here

            String customWorkspace = getParent().getParent().getCustomWorkspace();
            if (customWorkspace != null) {
                // Use custom workspace as defined in the matrix project settings.
                FilePath ws = n.getRootPath().child(getEnvironment(listener).expand(customWorkspace));
                // We allow custom workspaces to be used concurrently between jobs.
                return Lease.createDummyLease(ws.child(subtree));
            } else {  
                // Use default workspace as assigned by Hudson.
                Node node = getBuiltOn();
                FilePath ws = node.getWorkspaceFor(getParent().getParent());
                // Allocate unique workspace (not to be shared between jobs and runs).
View Full Code Here

            } else {  
                // Use default workspace as assigned by Hudson.
                Node node = getBuiltOn();
                FilePath ws = node.getWorkspaceFor(getParent().getParent());
                // Allocate unique workspace (not to be shared between jobs and runs).
                return wsl.allocate(ws.child(subtree));
            }
        }
    }
}
View Full Code Here

                return;
            }

            // convert a directory service request to a single file service request by serving
            // 'index.html'
            baseFile = baseFile.child(indexFileName);
        }

        //serve a single file
        if(!baseFile.exists()) {
            rsp.sendError(HttpServletResponse.SC_NOT_FOUND);
View Full Code Here

    return moduleRoot.child(this.finalName + ".app");
  }

  private FilePath getResourcesFolder(FilePath moduleRoot) {
    FilePath appFolder = this.getAppFolder(moduleRoot);
    return appFolder.child("Contents").child("Resources");
  }

  private void copyVmsToAppFolder(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath appFolder = this.getAppFolder(moduleRoot);
    FilePath macVmPath = this.getMacVmPath(moduleRoot);
View Full Code Here

    return moduleRoot.child(this.finalName + ".app");
  }

  private FilePath getResourcesFolder(FilePath moduleRoot) {
    FilePath appFolder = this.getAppFolder(moduleRoot);
    return appFolder.child("Contents").child("Resources");
  }

  private void copyVmsToAppFolder(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath appFolder = this.getAppFolder(moduleRoot);
    FilePath macVmPath = this.getMacVmPath(moduleRoot);
View Full Code Here

    return getAbsoluteOrRelativePath(this.macVm, moduleRoot);
  }

  private FilePath getUnixVmPath(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath unixVmPath = getAbsoluteOrRelativePath(this.unixVm, moduleRoot);
    if (unixVmPath.child("squeakvm").exists()) {
      return unixVmPath;
    }
    unixVmPath = unixVmPath.child("lib").child("squeak");
    for (FilePath subdirectory : unixVmPath.listDirectories()) {
      if (subdirectory.child("squeakvm").exists()) {
View Full Code Here

  private FilePath getUnixVmPath(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath unixVmPath = getAbsoluteOrRelativePath(this.unixVm, moduleRoot);
    if (unixVmPath.child("squeakvm").exists()) {
      return unixVmPath;
    }
    unixVmPath = unixVmPath.child("lib").child("squeak");
    for (FilePath subdirectory : unixVmPath.listDirectories()) {
      if (subdirectory.child("squeakvm").exists()) {
        return subdirectory;
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.