From c2790137927a8bde416f1a6bdf3c9d87ed83e3d3 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 7 Apr 2007 04:03:30 +0000 Subject: [PATCH] added a reasonable default method. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2901 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/scm/NullSCM.java | 4 ---- core/src/main/java/hudson/scm/SCM.java | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/hudson/scm/NullSCM.java b/core/src/main/java/hudson/scm/NullSCM.java index b4f585b05c..d794d95276 100644 --- a/core/src/main/java/hudson/scm/NullSCM.java +++ b/core/src/main/java/hudson/scm/NullSCM.java @@ -39,10 +39,6 @@ public class NullSCM extends SCM { // noop } - public FilePath getModuleRoot(FilePath workspace) { - return workspace; - } - public ChangeLogParser createChangeLogParser() { return new NullChangeLogParser(); } diff --git a/core/src/main/java/hudson/scm/SCM.java b/core/src/main/java/hudson/scm/SCM.java index 293700195b..fe3ed9c3c9 100644 --- a/core/src/main/java/hudson/scm/SCM.java +++ b/core/src/main/java/hudson/scm/SCM.java @@ -124,7 +124,9 @@ public abstract class SCM implements Describable, ExtensionPoint { * Gets the top directory of the checked out module. * @param workspace */ - public abstract FilePath getModuleRoot(FilePath workspace); + public FilePath getModuleRoot(FilePath workspace) { + return workspace; + } /** * The returned object will be used to parse changelog.xml.