Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Remove un-used code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed Nov 20, 2015
1 parent cc3df2b commit 9116ee4
Showing 1 changed file with 0 additions and 71 deletions.
Expand Up @@ -231,75 +231,4 @@ public void deploy(Descriptor descriptor) throws DeploymentException {
public void undeploy(Descriptor descriptor) throws DeploymentException {
}

private Path findJava() {
String javaHome = System.getProperty("java.home");
if (javaHome == null) {
return null;
}

Path binDir = FileSystems.getDefault().getPath(javaHome, "bin");

Path java = binDir.resolve("java.exe");
if (java.toFile().exists()) {
return java;
}

java = binDir.resolve("java");
if (java.toFile().exists()) {
return java;
}

return null;
}

private static class IOBridge implements Runnable {

private final String name;

private final InputStream in;

private final OutputStream out;

private Exception error;

private final CountDownLatch latch;

public IOBridge(String name, CountDownLatch latch, InputStream in, OutputStream out) {
this.name = name;
this.in = in;
this.out = out;
this.latch = latch;
}

public Exception getError() {
return this.error;
}

@Override
public void run() {

BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String line = null;
try {
while ((line = reader.readLine()) != null) {
processLine(line);
}
} catch (IOException e) {
this.error = e;
this.latch.countDown();
}
}

protected void processLine(String line) throws IOException {
out.write(line.getBytes());
out.write('\n');
if (line.contains("WFLYSRV0010")) {
this.latch.countDown();
}
}

public void close() throws IOException {
this.in.close();
}
}
}

0 comments on commit 9116ee4

Please sign in to comment.