mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
added a reasonable default method.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2901 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
8e879f0211
commit
c279013792
2 files changed
+3
-5
No files matched your search
@@ -39,10 +39,6 @@ public class NullSCM extends SCM {
|
||||
// noop
|
||||
}
|
||||
|
||||
public FilePath getModuleRoot(FilePath workspace) {
|
||||
return workspace;
|
||||
}
|
||||
|
||||
public ChangeLogParser createChangeLogParser() {
|
||||
return new NullChangeLogParser();
|
||||
}
|
||||
|
||||
@@ -124,7 +124,9 @@ public abstract class SCM implements Describable<SCM>, 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 <tt>changelog.xml</tt>.
|
||||
|
||||
Reference in new issue
Block a user