Examples of pwd()


Examples of com.alphacsp.cit.Environment.pwd()

    public void execute(ExecutionContext executionContext) throws CommandExecutionException {
        Environment environment = executionContext.getEnvironment();
        List<String> parameters = executionContext.getParameters();

        FileValue pwd = environment.pwd();

        if (parameters.isEmpty()) {
            environment.cd();
        } else {
            String newFolder = parameters.get(0);
View Full Code Here

Examples of com.alphacsp.cit.Environment.pwd()

        List<String> commands = new ArrayList<String>();
        commands.add(editor.getAsText());
        commands.addAll(parameters);
        DefaultProcessLauncher processLauncher = new DefaultProcessLauncher();
        Environment environment = executionContext.getEnvironment();
        processLauncher.setWorkingDir(environment.pwd().getAsFile());
        processLauncher.addCommands(commands);
        processLauncher.addEnvironmentVariables(environment.getVars());
        processLauncher.exec();
    }
}
View Full Code Here

Examples of com.enterprisedt.net.ftp.FTPClient.pwd()

            // try system()
            System.out.println(ftp.system());

            // try pwd()
            System.out.println(ftp.pwd());

            ftp.quit();
        }
        catch (Exception ex) {
            System.out.println("Caught exception: " + ex.getMessage());
View Full Code Here

Examples of com.enterprisedt.net.ftp.FTPClient.pwd()

            // try system()
            System.out.println(ftp.system());

            // try pwd()
            System.out.println(ftp.pwd());

            ftp.quit();
        }
        catch (IOException ex) {
            System.out.println("Caught exception: " + ex.getMessage());
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.pwd()

            String workingDirectory = null;
            try
            {
                if (relPath != null)
                {
                    workingDirectory = channel.pwd();
                    channel.cd(relPath);
                }
            }
            catch (SftpException ex)
            {
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.pwd()

            String workingDirectory = null;
            try
            {
                if (relPath != null)
                {
                    workingDirectory = channel.pwd();
                    channel.cd(relPath);
                }
            }
            catch (SftpException ex)
            {
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.pwd()

            String workingDirectory = null;
            try
            {
                if (relPath != null)
                {
                    workingDirectory = channel.pwd();
                    channel.cd(relPath);
                }
            }
            catch (final SftpException ex)
            {
View Full Code Here

Examples of com.sshtools.j2ssh.SftpClient.pwd()

        }
        catch (IOException ex) {
        }
        // Change directory
        sftp.cd("j2ssh");
        System.out.println(sftp.pwd());
        // Change the mode
        sftp.chmod(0777, "j2ssh");
        sftp.lcd("c:/");
        // Upload a file
        sftp.put("system.gif");
View Full Code Here

Examples of hudson.Launcher.ProcStarter.pwd()

        if (env != null) {
            procStarter = procStarter.envs(env);
        }

        if (workingDirectory != null) {
            procStarter.pwd(workingDirectory);
        }
        procStarter.join();
    }

    /**
 
View Full Code Here

Examples of hudson.Launcher.ProcStarter.pwd()

        if (masksOrNull != null) {
            starter = starter.masks(masksOrNull);
        }
        starter = starter.envs(environmentVariables);
        starter = starter.stdout(stdoutStream).stderr(stderrStream);
        starter = starter.pwd(directoryToRunCommandFrom);
        return starter;
    }

    private static void logCommandFailure(//
            final ArgumentListBuilder command, //
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.