mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
added a tester code
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17019 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
bd4fccf804
commit
4fe546feeb
2 files changed
+26
-2
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package hudson.os;
|
||||
|
||||
import hudson.remoting.Callable;
|
||||
import hudson.util.StreamTaskListener;
|
||||
|
||||
import java.io.FileOutputStream;
|
||||
|
||||
/**
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class SUTester {
|
||||
public static void main(String[] args) throws Throwable {
|
||||
SU.execute(new StreamTaskListener(System.out),null,null,new Callable<Object, Throwable>() {
|
||||
public Object call() throws Throwable {
|
||||
new FileOutputStream("/tmp/x").close();
|
||||
return null;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user