From 542d5637cacc89f2f5b9ed6e90fe96b134ee7d60 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 19 Aug 2009 21:55:29 +0000 Subject: [PATCH] 1.XXX -> 1.319 git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20932 71c3de6d-444a-0410-be80-ed276b4c234a --- .../src/main/java/hudson/model/AbstractProject.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index ec9b824f94..61e667b43a 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -231,7 +231,7 @@ public abstract class AbstractProject

,R extends A /** * Does this project perform concurrent builds? - * @since 1.XXX + * @since 1.319 */ public boolean isConcurrentBuild() { return Hudson.CONCURRENT_BUILD && concurrentBuild; @@ -297,7 +297,7 @@ public abstract class AbstractProject

,R extends A * * @return * null if the workspace is on a slave that's not connected. - * @deprecated as of 1.XXX + * @deprecated as of 1.319 * To support concurrent builds of the same project, this method is moved to {@link AbstractBuild}. * For backward compatibility, this method returns the right {@link AbstractBuild#getWorkspace()} if called * from {@link Executor}, and otherwise the workspace of the last build. @@ -332,7 +332,7 @@ public abstract class AbstractProject

,R extends A * * @return * null if there's no available workspace. - * @since 1.XXX + * @since 1.319 */ public final FilePath getSomeWorkspace() { int cnt=0; @@ -349,7 +349,7 @@ public abstract class AbstractProject

,R extends A * This is usually where pom.xml, build.xml * and so on exists. * - * @deprecated as of 1.XXX + * @deprecated as of 1.319 * See {@link #getWorkspace()} for a migration strategy. */ public FilePath getModuleRoot() { @@ -365,7 +365,7 @@ public abstract class AbstractProject

,R extends A * In these cases, the returned array will have a length greater than one. * @return The roots of all modules checked out from the SCM. * - * @deprecated as of 1.XXX + * @deprecated as of 1.319 * See {@link #getWorkspace()} for a migration strategy. */ public FilePath[] getModuleRoots() { @@ -851,7 +851,7 @@ public abstract class AbstractProject

,R extends A * Gets the {@link Resource} that represents the workspace of this project. * Useful for locking and mutual exclusion control. * - * @deprecated as of 1.XXX + * @deprecated as of 1.319 * Projects no longer have a fixed workspace, ands builds will find an available workspace via * {@link WorkspaceList} for each build (furthermore, that happens after a build is started.) * So a {@link Resource} representation for a workspace at the project level no longer makes sense. @@ -1342,6 +1342,7 @@ public abstract class AbstractProject

,R extends A */ public HttpResponse doDoWipeOutWorkspace() throws IOException, ServletException, InterruptedException { checkPermission(BUILD); + getLastBuild(); if (getScm().processWorkspaceBeforeDeletion(this, getWorkspace(), null)) { getWorkspace().deleteRecursive(); return new HttpRedirect("."); -- GitLab