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:
kohsuke committed 2008-03-08 18:31:42 +00:00
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();
}
/**