mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
Merged revisions 21782-21783 via svnmerge from
https://www.dev.java.net/svn/hudson/branches/rc ........ r21782 | kohsuke | 2009-09-17 10:22:50 -0700 (Thu, 17 Sep 2009) | 1 line [FIXED HUDSON-4039] Several classes need to be marked as serializable. ........ r21783 | kohsuke | 2009-09-17 10:29:06 -0700 (Thu, 17 Sep 2009) | 1 line added a regression test for HUDSON-4039 ........ git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21797 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
a898587cde
commit
97af019ca7
2 files changed
+28
-3
No files matched your search
@@ -36,6 +36,7 @@ import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.apache.commons.io.output.NullOutputStream;
|
||||
|
||||
/**
|
||||
* @author Kohsuke Kawaguchi
|
||||
@@ -102,4 +103,16 @@ public class FilePathTest extends TestCase {
|
||||
Assert.assertTrue("could not delete target " + tmp2.getPath(), tmp2.delete());
|
||||
}
|
||||
}
|
||||
|
||||
public void testArchiveBug4039() throws Exception {
|
||||
File tmp = Util.createTempDir();
|
||||
try {
|
||||
FilePath d = new FilePath(french,tmp.getPath());
|
||||
d.child("test").touch(0);
|
||||
d.zip(new NullOutputStream());
|
||||
d.zip(new NullOutputStream(),"**/*");
|
||||
} finally {
|
||||
Util.deleteRecursive(tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user