Examples of installIfNecessaryFrom()


Examples of hudson.FilePath.installIfNecessaryFrom()

      LOGGER.log(Level.INFO, "install start for Hadoop Ruby");
      StreamTaskListener listener = new StreamTaskListener(System.out);
      File rootDir = Hudson.getInstance().getRootDir();
      rootDir = new File(rootDir, "hadoop-ruby");
      FilePath distDir = new FilePath(rootDir);
      distDir.installIfNecessaryFrom(ItemListenerImpl.class
          .getResource("hadoop-ruby.tgz"), listener, "Hadoop Ruby");
      LOGGER.log(Level.INFO, "install finished for Hadoop Ruby");

    } catch (Exception e) {
      LOGGER.log(Level.WARNING, "Failed to install Hadoop Ruby", e);
View Full Code Here

Examples of hudson.FilePath.installIfNecessaryFrom()

        return subdir;
    }

    public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException {
        FilePath dir = preferredLocation(tool, node);
        if (dir.installIfNecessaryFrom(new URL(url), log, "Unpacking " + url + " to " + dir + " on " + node.getDisplayName())) {
            dir.act(new ChmodRecAPlusX());
        }
        if (subdir == null) {
            return dir;
        } else {
View Full Code Here

Examples of hudson.FilePath.installIfNecessaryFrom()

        }

        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
View Full Code Here

Examples of hudson.FilePath.installIfNecessaryFrom()

        // Download the SDK, if required
        boolean wasNowInstalled = installDir.act(new FileCallable<Boolean>() {
            public Boolean invoke(File f, VirtualChannel channel)
                    throws InterruptedException, IOException {
                String msg = Messages.DOWNLOADING_SDK_FROM(downloadUrl);
                return installDir.installIfNecessaryFrom(downloadUrl, listener, msg);
            }
            private static final long serialVersionUID = 1L;
        });

        if (wasNowInstalled) {
View Full Code Here

Examples of hudson.FilePath.installIfNecessaryFrom()

        }

        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
View Full Code Here

Examples of hudson.FilePath.installIfNecessaryFrom()

        return subdir;
    }

    public FilePath performInstallation(ToolInstallation tool, Node node, TaskListener log) throws IOException, InterruptedException {
        FilePath dir = preferredLocation(tool, node);
        if (dir.installIfNecessaryFrom(new URL(url), log, "Unpacking " + url + " to " + dir + " on " + node.getDisplayName())) {
            dir.act(new ChmodRecAPlusX());
        }
        if (subdir == null) {
            return dir;
        } else {
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.