本文整理了Java中hudson.model.Messages.Run_InProgressDuration()
方法的一些代码示例,展示了Messages.Run_InProgressDuration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Messages.Run_InProgressDuration()
方法的具体详情如下:
包路径:hudson.model.Messages
类名称:Messages
方法名:Run_InProgressDuration
[英]{0} and counting
[中]{0}和计数
代码示例来源:origin: jenkinsci/jenkins
/**
* Gets the string that says how long the build took to run.
*/
public @Nonnull String getDurationString() {
if (hasntStartedYet()) {
return Messages.Run_NotStartedYet();
} else if (isBuilding()) {
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis()-startTime));
}
return Util.getTimeSpanString(duration);
}
代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder
@Nonnull
public String getDurationString() {
if (isBuilding()) {
return hudson.model.Messages.Run_InProgressDuration(Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
} else {
return Util.getTimeSpanString(duration);
}
}
代码示例来源:origin: jenkinsci/cloudbees-folder-plugin
@Nonnull
public String getDurationString() {
if (isBuilding()) {
return hudson.model.Messages.Run_InProgressDuration(Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
} else {
return Util.getTimeSpanString(duration);
}
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Gets the string that says how long the build took to run.
*/
public String getDurationString() {
if(isBuilding())
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
return Util.getTimeSpanString(duration);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Gets the string that says how long the build took to run.
*/
public String getDurationString() {
if(isBuilding())
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
return Util.getTimeSpanString(duration);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Gets the string that says how long the build took to run.
*/
public String getDurationString() {
if (isBuilding()) {
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis() - timestamp));
}
return Util.getTimeSpanString(duration);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Gets the string that says how long the build took to run.
*/
public String getDurationString() {
if(isBuilding())
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis()-timestamp));
return Util.getTimeSpanString(duration);
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Gets the string that says how long the build took to run.
*/
public @Nonnull String getDurationString() {
if (hasntStartedYet()) {
return Messages.Run_NotStartedYet();
} else if (isBuilding()) {
return Messages.Run_InProgressDuration(
Util.getTimeSpanString(System.currentTimeMillis()-startTime));
}
return Util.getTimeSpanString(duration);
}
内容来源于网络,如有侵权,请联系作者删除!