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.