Package hudson

Examples of hudson.FilePath.copyTo()


                  listener.getLogger().println("Copying file to "+location);
                    FilePath locationFilePath = build.getWorkspace().child(location);
                    locationFilePath.getParent().mkdirs();
                  locationFilePath.copyFrom(file);
                  file = null;
                    locationFilePath.copyTo(new FilePath(getLocationUnderBuild(build)));
              }
                return new Environment() {};
            }
        };
    }
View Full Code Here


    @Override
    public ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException {
        // capture the file to the server
        FilePath src = new FilePath(command.channel,value);
        File local = File.createTempFile("hudson","parameter");
        src.copyTo(new FilePath(local));

        FileParameterValue p = new FileParameterValue(getName(), local, src.getName());
        p.setDescription(getDescription());
        p.setLocation(getName());
        return p;
View Full Code Here

  }

  private void copySources(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath target = this.getResourcesFolder(moduleRoot);
    FilePath sourcesFilePath = this.getSourcesFilePath(moduleRoot, logger);
    sourcesFilePath.copyTo(target.child(sourcesFilePath.getName()));
  }

  private void renameExe(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    this.renameFileInAppFolderToFinalName(moduleRoot, "exe", logger);
  }
View Full Code Here

    FilePath resourcesFolder = this.getResourcesFolder(moduleRoot);
    FilePath imagePath = this.getImagePath(moduleRoot);
    FilePath changesPath = this.getChangesPath(moduleRoot);

    imagePath.copyTo(resourcesFolder.child(this.finalName + ".image"));
    changesPath.copyTo(resourcesFolder.child(this.finalName + ".changes"));
  }

  private void copyWindowsSplash(FilePath moduleRoot) throws IOException, InterruptedException {
    if (StringUtils.isEmpty(this.windowsSplash)) {
      return;
View Full Code Here

      return;
    }

    FilePath target = this.getAppFolder(moduleRoot);
    FilePath windowsSplashPath = this.getWindowsSplashPath(moduleRoot);
    windowsSplashPath.copyTo(target.child(windowsSplashPath.getName()));
  }

  private void copyMacOsIcon(FilePath moduleRoot) throws IOException, InterruptedException {
    if (StringUtils.isEmpty(this.macOsIcon)) {
      return;
View Full Code Here

      return;
    }

    FilePath target = this.getResourcesFolder(moduleRoot);
    FilePath macOsIconPath = this.getMacOsIconPath(moduleRoot);
    macOsIconPath.copyTo(target.child(macOsIconPath.getName()));
  }

  private void writeWindowsIni(FilePath moduleRoot) throws IOException, InterruptedException {
    FilePath appFolder = this.getAppFolder(moduleRoot);
View Full Code Here

  }

  private void copySources(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    FilePath target = this.getResourcesFolder(moduleRoot);
    FilePath sourcesFilePath = this.getSourcesFilePath(moduleRoot, logger);
    sourcesFilePath.copyTo(target.child(sourcesFilePath.getName()));
  }

  private void renameExeAndIni(FilePath moduleRoot, PrintStream logger) throws IOException, InterruptedException {
    this.renameFileInAppFolderToFinalName(moduleRoot, "exe", logger);
    this.renameFileInAppFolderToFinalName(moduleRoot, "ini", logger);
View Full Code Here

    FilePath resourcesFolder = this.getResourcesFolder(moduleRoot);
    FilePath imagePath = this.getImagePath(moduleRoot);
    FilePath changesPath = this.getChangesPath(moduleRoot);

    imagePath.copyTo(resourcesFolder.child(this.finalName + ".image"));
    changesPath.copyTo(resourcesFolder.child(this.finalName + ".changes"));
  }

  private void copyWindowsSplash(FilePath moduleRoot) throws IOException, InterruptedException {
    if (StringUtils.isEmpty(this.windowsSplash)) {
      return;
View Full Code Here

      return;
    }

    FilePath target = this.getAppFolder(moduleRoot);
    FilePath windowsSplashPath = this.getWindowsSplashPath(moduleRoot);
    windowsSplashPath.copyTo(target.child(windowsSplashPath.getName()));
  }

  private void copyMacOsIcon(FilePath moduleRoot) throws IOException, InterruptedException {
    if (StringUtils.isEmpty(this.macOsIcon)) {
      return;
View Full Code Here

      return;
    }

    FilePath target = this.getResourcesFolder(moduleRoot);
    FilePath macOsIconPath = this.getMacOsIconPath(moduleRoot);
    macOsIconPath.copyTo(target.child(macOsIconPath.getName()));
  }

  private void writeWindowsIni(FilePath moduleRoot) throws IOException, InterruptedException {
    FilePath appFolder = this.getAppFolder(moduleRoot);
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.