class initialization of Hudson is much more work than that of Util, so pushing these small utilities out to Util to reduce the overhead of remoting.

Plus it helps to keep Hudson.java smaller

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@27448 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-02-13 01:30:56 +00:00
1 parent 7089a81862
commit 2676adca52
13 files changed
+27 -23

No files matched your search

+1 -2
View File
@@ -30,7 +30,6 @@ import java.util.HashMap;
import java.util.Locale;
import java.io.File;
import hudson.model.Hudson;
import hudson.util.StreamTaskListener;
/**
@@ -144,7 +143,7 @@ public class UtilTest extends TestCase {
}
public void testSymlink() throws Exception {
if (Hudson.isWindows()) return;
if (Functions.isWindows()) return;
StreamTaskListener l = new StreamTaskListener(System.out);
File d = Util.createTempDir();