Skip to content

Commit

Permalink
Fixed examples and updated link to Javadoc (fixes #88).
Browse files Browse the repository at this point in the history
- Javadoc will only be available after commit xebialabs/xebialabs.github.com@1b639ad takes effect.
  • Loading branch information
Vincent Partington committed Feb 22, 2014
1 parent d4b0801 commit 8c875f7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Binary releases of Overthere are not provided here, but you can download it [str
<a name="programming_overthere"></a>
# Programming Overthere

To program Overthere, browse the source code, check the examples and browse the Overthere <a href="http://docs.xebialabs.com/overthere/javadoc/">Javadoc</a>.
To program Overthere, browse the source code, check the examples and browse the Overthere <a href="http://xebialabs.github.io/overthere/javadoc">Javadoc</a>.

For a more thorough introduction to Overthere, check the [presentation on Overthere](http://www.slideshare.net/vpartington/presentation-about-overthere-for-jfall-2011) that I gave for J-Fall 2011, a Java conference in the Netherlands (in English).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.xebialabs.overthere.OperatingSystemFamily.UNIX;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.CONNECTION_TYPE;
import static com.xebialabs.overthere.ssh.SshConnectionType.SFTP;
import static com.xebialabs.overthere.util.ConsoleOverthereProcessOutputHandler.consoleHandler;

import com.xebialabs.overthere.CmdLine;
import com.xebialabs.overthere.ConnectionOptions;
Expand All @@ -25,7 +24,7 @@ public static void main(String[] args) {
options.set(CONNECTION_TYPE, SFTP);
OverthereConnection connection = Overthere.getConnection("ssh", options);
try {
connection.execute(consoleHandler(), CmdLine.build("cat", "/etc/motd"));
connection.execute(CmdLine.build("cat", "/etc/motd"));
} finally {
connection.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.xebialabs.overthere.OperatingSystemFamily.WINDOWS;
import static com.xebialabs.overthere.cifs.CifsConnectionBuilder.CONNECTION_TYPE;
import static com.xebialabs.overthere.cifs.CifsConnectionType.TELNET;
import static com.xebialabs.overthere.util.ConsoleOverthereProcessOutputHandler.consoleHandler;

import com.xebialabs.overthere.CmdLine;
import com.xebialabs.overthere.ConnectionOptions;
Expand All @@ -27,7 +26,7 @@ public static void main(String[] args) {
OverthereConnection connection = Overthere.getConnection("cifs", options);

try {
connection.execute(consoleHandler(), CmdLine.build("type", "\\windows\\system32\\drivers\\etc\\hosts"));
connection.execute(CmdLine.build("type", "\\windows\\system32\\drivers\\etc\\hosts"));
} finally {
connection.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.xebialabs.overthere.OperatingSystemFamily.UNIX;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.CONNECTION_TYPE;
import static com.xebialabs.overthere.ssh.SshConnectionType.SFTP;
import static com.xebialabs.overthere.util.ConsoleOverthereProcessOutputHandler.consoleHandler;

import java.io.IOException;

Expand All @@ -28,7 +27,7 @@ public static void main(String[] args) throws IOException {
options.set(CONNECTION_TYPE, SFTP);
OverthereConnection connection = Overthere.getConnection("ssh", options);
try {
connection.execute(consoleHandler(), CmdLine.build("cp", "-r", "/var/log/apt", "/tmp/logs1"));
connection.execute(CmdLine.build("cp", "-r", "/var/log/apt", "/tmp/logs1"));
OverthereFile logs1 = connection.getFile("/tmp/logs1");
OverthereFile logs2 = connection.getFile("/tmp/logs2");
logs2.delete();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.xebialabs.overthere.OperatingSystemFamily.UNIX;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.CONNECTION_TYPE;
import static com.xebialabs.overthere.ssh.SshConnectionType.SFTP;
import static com.xebialabs.overthere.util.ConsoleOverthereProcessOutputHandler.consoleHandler;

import java.io.IOException;

Expand All @@ -28,7 +27,7 @@ public static void main(String[] args) throws IOException {
options.set(CONNECTION_TYPE, SFTP);
OverthereConnection connection = Overthere.getConnection("ssh", options);
try {
connection.execute(consoleHandler(), CmdLine.build("cp", "/etc/motd", "/tmp/motd1"));
connection.execute(CmdLine.build("cp", "/etc/motd", "/tmp/motd1"));
OverthereFile motd1 = connection.getFile("/tmp/motd1");
OverthereFile motd2 = connection.getFile("/tmp/motd2");
motd2.delete();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import static com.xebialabs.overthere.OperatingSystemFamily.UNIX;
import static com.xebialabs.overthere.ssh.SshConnectionBuilder.CONNECTION_TYPE;
import static com.xebialabs.overthere.ssh.SshConnectionType.SCP;
import static com.xebialabs.overthere.util.ConsoleOverthereProcessOutputHandler.consoleHandler;

import java.io.IOException;
import java.io.PrintWriter;
Expand Down Expand Up @@ -38,7 +37,7 @@ public static void main(String[] args) throws IOException {
} finally {
w.close();
}
connection.execute(consoleHandler(), CmdLine.build("cat", "/tmp/new-motd"));
connection.execute(CmdLine.build("cat", "/tmp/new-motd"));
} finally {
connection.close();
}
Expand Down

0 comments on commit 8c875f7

Please sign in to comment.