mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
- modified to use StaplerRequest, instead of HttpServletRequest.
- added BuildWrapper class for implementing #158. still very much experimental. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1192 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
dcf56cbb9c
commit
856d15e4ef
14 files changed
+149
-12
No files matched your search
@@ -50,6 +50,9 @@ public final class Proc {
|
||||
proc.getOutputStream().close();
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for the completion of the process.
|
||||
*/
|
||||
public int join() {
|
||||
try {
|
||||
t1.join();
|
||||
@@ -62,6 +65,14 @@ public final class Proc {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Terminates the process.
|
||||
*/
|
||||
public void kill() {
|
||||
proc.destroy();
|
||||
join();
|
||||
}
|
||||
|
||||
private static class Copier extends Thread {
|
||||
private final InputStream in;
|
||||
private final OutputStream out;
|
||||
|
||||
Reference in new issue
Block a user