File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\model\WorkspaceListener.java.html

1 package hudson.model;
2
3 import hudson.ExtensionList;
4 import hudson.ExtensionPoint;
5 import hudson.FilePath;
6
7 public abstract class WorkspaceListener implements ExtensionPoint {
8
9 /**
10 * Called after a workspace is deleted successfully.
11 * @param project
12 */
13 public void afterDelete(AbstractProject project) {
14
15 }
16
17 /**
18 * Called before a build uses a workspace. IE, before any SCM checkout.
19 * @param r
20 * @param workspace
21 * @param listener
22 */
23 public void beforeUse(AbstractBuild b, FilePath workspace, BuildListener listener) {
24
25 }
26
27 /**
28 * All registered {@link WorkspaceListener}s.
29 */
30 public static ExtensionList<WorkspaceListener> all() {
31 return Hudson.getInstance().getExtensionList(WorkspaceListener.class);
32 }
33
34 }
35