public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if(inst==null) { log.getLogger().println("Invalid tool ID "+id); return expected; } if (inst instanceof NodeSpecific) { inst = (Installable) ((NodeSpecific) inst).forNode(node, log); } if(isUpToDate(expected,inst)) return expected; if(expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if(base!=null && base!=expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url,"UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
public void pullUp(String from, String to) throws IOException, InterruptedException { $(from).moveAllChildrenTo($(to)); }
@Override public void pullUp(String from, String to) throws IOException, InterruptedException { $(from).moveAllChildrenTo($(to)); }
public void pullUp(String from, String to) throws IOException, InterruptedException { $(from).moveAllChildrenTo($(to)); }
public void pullUp(String from, String to) throws IOException, InterruptedException { $(from).moveAllChildrenTo($(to)); }
public void pullUp(String from, String to) throws IOException, InterruptedException { $(from).moveAllChildrenTo($(to)); }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if(inst==null) { log.getLogger().println("Invalid tool ID "+id); return expected; } if(isUpToDate(expected,inst)) return expected; if(expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if(base!=null && base!=expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url,"UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if(inst==null) { log.getLogger().println("Invalid tool ID "+id); return expected; } if(isUpToDate(expected,inst)) return expected; if(expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if(base!=null && base!=expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url,"UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if (inst == null) { log.getLogger().println("Invalid tool ID " + id); return expected; } if (isUpToDate(expected, inst)) { return expected; } if (expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if (base != null && base != expected) { base.moveAllChildrenTo(expected); } // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url, "UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if(inst==null) { log.getLogger().println("Invalid tool ID "+id); return expected; } if(isUpToDate(expected,inst)) return expected; if(expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if(base!=null && base!=expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url,"UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expected = preferredLocation(tool, node); Installable inst = getInstallable(); if(inst==null) { log.getLogger().println("Invalid tool ID "+id); return expected; } if (inst instanceof NodeSpecific) { inst = (Installable) ((NodeSpecific) inst).forNode(node, log); } if(isUpToDate(expected,inst)) return expected; if(expected.installIfNecessaryFrom(new URL(inst.url), log, "Unpacking " + inst.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if(base!=null && base!=expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(inst.url,"UTF-8"); expected.act(new ZipExtractionInstaller.ChmodRecAPlusX()); } return expected; }
@Override public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { this.platform = ToolsUtils.getPlatform(node); this.cpu = ToolsUtils.getCPU(node, force32Bit); FilePath expected; Installable installable = getInstallable(); if (installable == null || !installable.url.toLowerCase(Locale.ENGLISH).endsWith("msi")) { expected = super.performInstallation(tool, node, log); } else { expected = preferredLocation(tool, node); if (!isUpToDate(expected, installable)) { if (installIfNecessaryMSI(expected, new URL(installable.url), log, "Installing " + installable.url + " to " + expected + " on " + node.getDisplayName())) { expected.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expected); if (base != null && base != expected) base.moveAllChildrenTo(expected); // leave a record for the next up-to-date check expected.child(".installedFrom").write(installable.url, "UTF-8"); } } } refreshGlobalPackages(node, log, expected); return expected; }
public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException { FilePath expectedPath = preferredLocation(tool, node); Installable installable; try { installable = getInstallable(node); } catch (InstallationFailedException e) { throw new InstallationFailedException(Messages.CouldNotInstallGo(e.getMessage())); } if (installable == null) { log.getLogger().println(Messages.UnrecognisedReleaseId(id)); return expectedPath; } if (isUpToDate(expectedPath, installable)) { return expectedPath; } String message = Messages.InstallingGoOnNode(installable.url, expectedPath, node.getDisplayName()); if (expectedPath.installIfNecessaryFrom(new URL(installable.url), log, message)) { expectedPath.child(".timestamp").delete(); // we don't use the timestamp FilePath base = findPullUpDirectory(expectedPath); if (base != null && base != expectedPath) base.moveAllChildrenTo(expectedPath); // leave a record for the next up-to-date check expectedPath.child(".installedFrom").write(installable.url, "UTF-8"); } return expectedPath; }
toolsSubdir.listDirectories().get(0).moveAllChildrenTo(toolsSubdir);
throw new AbortException(Messages.JDKInstaller_FailedToInstallJDK(exit)); parent.child("Contents/Home").moveAllChildrenTo(new FilePath(launcher.getChannel(), expectedLocation)); parent.child("Contents").deleteRecursive();