- allowing InterruptedException in more places.

- hooking up FileSystemProvisioner


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15345 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-14 17:37:05 +00:00
1 parent 6e8b814140
commit d741f23d33
12 files changed
+33 -28

No files matched your search

@@ -30,7 +30,6 @@ import hudson.model.Computer;
import hudson.model.Describable;
import hudson.model.Job;
import hudson.model.TaskListener;
import hudson.model.Node;
import hudson.model.listeners.RunListener;
import hudson.util.DescriptorList;
import hudson.scm.SCM;
@@ -140,7 +139,7 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
* When a project is deleted, this method is called to undo the effect of
* {@link #prepareWorkspace(AbstractBuild, FilePath, TaskListener)}.
*/
public abstract void discardWorkspace(AbstractProject<?,?> project, TaskListener listener) throws IOException, InterruptedException;
public abstract void discardWorkspace(AbstractProject<?,?> project) throws IOException, InterruptedException;
// public abstract void moveWorkspace(AbstractProject<?,?> project, File oldWorkspace, File newWorkspace) throws IOException;
@@ -167,15 +166,6 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
public abstract FileSystemProvisionerDescriptor getDescriptor();
/**
* TODO: eventually move this to {@link Node} since it needs to be configurable
* per node, but as of now kept here to avoid interfering with the production code.
*/
public static FileSystemProvisioner get(Node node) {
return DEFAULT;
}
/**
* A list of available file system provider types.
*/
@@ -194,11 +184,9 @@ public abstract class FileSystemProvisioner implements ExtensionPoint, Describab
private Default() {}
public void prepareWorkspace(AbstractBuild<?, ?> build, FilePath ws, TaskListener listener) throws IOException, InterruptedException {
ws.mkdirs();
}
public void discardWorkspace(AbstractProject<?, ?> project, TaskListener listener) throws IOException, InterruptedException {
project.getWorkspace().deleteRecursive();
public void discardWorkspace(AbstractProject<?,?> project) throws IOException, InterruptedException {
}
/**