提交 5892f694 编写于 作者: K kohsuke

moving getModuleRoot to AbstractProject.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1689 71c3de6d-444a-0410-be80-ed276b4c234a
上级 529e3fb2
......@@ -144,6 +144,16 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
return new FilePath(new File(getRootDir(),"workspace"));
}
/**
* Returns the root directory of the checked-out module.
* <p>
* This is usually where <tt>pom.xml</tt>, <tt>build.xml</tt>
* and so on exists.
*/
public FilePath getModuleRoot() {
return getScm().getModuleRoot(getWorkspace());
}
public int getQuietPeriod() {
return quietPeriod!=null ? quietPeriod : getParent().getQuietPeriod();
}
......
......@@ -126,16 +126,6 @@ public class Project extends AbstractProject<Project,Build> {
return new Build(this,dir);
}
/**
* Returns the root directory of the checked-out module.
*
* @return
* When running remotely, this returns a remote fs directory.
*/
public FilePath getModuleRoot() {
return getScm().getModuleRoot(getWorkspace());
}
/**
* Gets the dependency relationship map between this project (as the source)
* and that project (as the sink.)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册