Skip to content

Commit

Permalink
Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgene committed Jul 9, 2011
1 parent ba8090f commit e3d7cfb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -29,7 +29,7 @@ public void preOnline(
JythonPlugin.syncSitePackages(jythonHome, listener);
jythonHome.child("jython").chmod(0755);
jythonHome.child("tmp").mkdirs();
listener.getLogger().println("Installed Jython runtime.");
listener.getLogger().println("Installed Jython runtime");
}
}
}
Expand Up @@ -78,7 +78,7 @@ public void start() throws Exception {
JYTHON_HOME.unzipFrom(INSTALLER_URL.openStream());
JYTHON_HOME.child("jython").chmod(0755);
JYTHON_HOME.child("tmp").mkdirs();
LOG.info("Installed Jython runtime.");
LOG.info("Installed Jython runtime");
}
}
}
Expand Up @@ -59,6 +59,7 @@ private void invokeJython(String scriptPath, List<String> options) {
ProcessBuilder procBuilder = new ProcessBuilder(procCmd).
redirectErrorStream(true);

// Set "http_proxy" environment variable to Jenkins proxy value
ProxyConfiguration proxy = Hudson.getInstance().proxy;
if (proxy != null) {
procBuilder.environment().put(
Expand All @@ -69,7 +70,6 @@ private void invokeJython(String scriptPath, List<String> options) {
new InputStreamReader(proc.getInputStream()));
StringBuilder lines = new StringBuilder();
String line = stdOut.readLine();
boolean nameSet = false;
while (line != null) {
System.out.println(line);
lines.append(line);
Expand Down

0 comments on commit e3d7cfb

Please sign in to comment.