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:
kohsuke committed 2007-04-07 04:03:30 +00:00
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();
}
+3 -1
View File
@@ -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>.