mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
improved efficiency
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7448 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c55e36eec6
commit
05901476a3
2 files changed
+5
-2
No files matched your search
@@ -4,6 +4,8 @@ import hudson.util.ByteBuffer;
|
||||
import hudson.util.StreamTaskListener;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.io.Reader;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* {@link Thread} for performing one-off task.
|
||||
@@ -23,9 +25,9 @@ public abstract class TaskThread extends Thread {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public String getLog() {
|
||||
public Reader readAll() throws IOException {
|
||||
// this method can be invoked from another thread.
|
||||
return log.toString();
|
||||
return text.readAll();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user