本文整理了Java中hudson.model.AbstractItem.getRootDir()
方法的一些代码示例,展示了AbstractItem.getRootDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractItem.getRootDir()
方法的具体详情如下:
包路径:hudson.model.AbstractItem
类名称:AbstractItem
方法名:getRootDir
暂无
代码示例来源:origin: jenkinsci/jenkins
@Override public Void call() throws IOException {
onLoad(getParent(), getRootDir().getName());
return null;
}
});
代码示例来源:origin: jenkinsci/jenkins
@Override
public Void call() throws IOException {
onLoad(getParent(), getRootDir().getName());
return null;
}
});
代码示例来源:origin: jenkinsci/jenkins
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}
代码示例来源:origin: jenkinsci/jenkins
FileUtils.moveDirectory(item.getRootDir(), destDir);
oldParent.remove(item);
I newItem = destination.add(item, name);
代码示例来源:origin: jenkinsci/jenkins
File oldRoot = this.getRootDir();
File newRoot = this.getRootDir();
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Gets the directory where the Javadoc is stored for the given project.
*/
private static File getJavadocDir(AbstractItem project) {
return new File(project.getRootDir(),"javadoc");
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Gets the directory where the Javadoc is stored for the given project.
*/
private static File getJavadocDir(AbstractItem project) {
return new File(project.getRootDir(),"javadoc");
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Gets the directory where the Javadoc is stored for the given project.
*/
private static File getJavadocDir(AbstractItem project) {
return new File(project.getRootDir(),"javadoc");
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Gets the directory where the Javadoc is stored for the given project.
*/
private static File getJavadocDir(AbstractItem project) {
return new File(project.getRootDir(), "javadoc");
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
private static File getSiteDir(AbstractItem project) {
return new File(project.getRootDir(),"site");
}
代码示例来源:origin: jenkinsci/maven-plugin
private static File getSiteDir(AbstractItem project) {
return new File(project.getRootDir(),"site");
}
代码示例来源:origin: jenkinsci/htmlpublisher-plugin
private File getProjectArchiveDir(AbstractItem project, String dirName) {
return new File(new File(project.getRootDir(), "htmlreports"), dirName);
}
/**
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
if (!getConfigFile().doDelete()) {
throw new IOException(getRootDir().getAbsolutePath()+"/config.xml can't be deleted");
}
// delete must succeed beyond this point
final File rootDir = getRootDir();
deleted = true;
new Thread(new Runnable() {
@Override
public void run() {
try {
Util.deleteRecursive(rootDir);
LOGGER.info("Job is deleted at "+rootDir.getAbsolutePath());
} catch (Exception e) {
LOGGER.warn("Delete job folder failed "+rootDir.getAbsolutePath()+" because "+e.getMessage());
// Bug 432569 - If folder can't be deleted, leaves job in half-deleted state
trySidelineJobDir(rootDir);
}
}
}, "Deleting "+getName()).start();
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override public Void call() throws IOException {
onLoad(getParent(), getRootDir().getName());
return null;
}
});
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
@Override
public Void call() throws IOException {
onLoad(getParent(), getRootDir().getName());
return null;
}
});
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
FileUtils.moveDirectory(item.getRootDir(), destDir);
oldParent.remove(item);
I newItem = destination.add(item, name);
内容来源于网络,如有侵权,请联系作者删除!