提交 a6f62ae0 编写于 作者: K kohsuke

modernized the configuration layout

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34818 71c3de6d-444a-0410-be80-ed276b4c234a
上级 2971427b
......@@ -44,8 +44,8 @@ import antlr.ANTLRException;
public class TimerTrigger extends Trigger<BuildableItem> {
@DataBoundConstructor
public TimerTrigger(String timer_spec) throws ANTLRException {
super(timer_spec);
public TimerTrigger(String spec) throws ANTLRException {
super(spec);
}
@Override
......@@ -63,15 +63,10 @@ public class TimerTrigger extends Trigger<BuildableItem> {
return Messages.TimerTrigger_DisplayName();
}
@Override
public String getHelpFile() {
return "/help/project-config/timer.html";
}
/**
* Performs syntax check.
*/
public FormValidation doCheck(@QueryParameter String value) {
public FormValidation doCheckSpec(@QueryParameter String value) {
try {
String msg = CronTabList.create(fixNull(value)).checkSanity();
if(msg!=null) return FormValidation.warning(msg);
......
<!--
The MIT License
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, InfraDNA, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -23,7 +23,7 @@ THE SOFTWARE.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%Schedule}" help="/help/project-config/timer-format.html">
<f:textarea name="timer_spec" checkUrl="'${rootURL}/trigger/TimerTrigger/check?value='+encodeURIComponent(this.value)" value="${instance.spec}"/>
<f:entry title="${%Schedule}" field="spec">
<f:textarea />
</f:entry>
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册