提交 3d4d3611 编写于 作者: K kohsuke

the varName attribute hasn't been necessary for a while.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14240 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4f98054f
......@@ -14,7 +14,6 @@
<j:if test="${!empty(reporters)}">
<f:descriptorList title="${%Build Settings}"
descriptors="${reporters}"
instances="${it.reporters.toMap()}"
varName="reporter" />
instances="${it.reporters.toMap()}" />
</j:if>
</j:jelly>
\ No newline at end of file
......@@ -56,8 +56,7 @@
<j:if test="${!empty(reporters)}">
<f:descriptorList title="${%Build Settings}"
descriptors="${reporters}"
instances="${it.reporters.toMap()}"
varName="reporter" />
instances="${it.reporters.toMap()}" />
</j:if>
<p:config-buildWrappers />
......
<!--
Generate config pages from a list of Descriptors into a section.
Attributes:
title caption for the section (required)
descriptors hudson.model.Descriptor collection to display (required)
instances Map<Descriptor,Describable>, or a class that defines Describable get(Descriptor). Instances to display as current settings (required)
varName Used as a variable name as well as block name (required)
targetType the type for which descriptors will be configured.
default to ${it.class} (optional)
-->
<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">
<st:documentation>
Generate config pages from a list of Descriptors into a section.
<st:attribute name="title" use="required">
Human readable title of the section to be rendered in HTML.
</st:attribute>
<st:attribute name="descriptors" use="required">
hudson.model.Descriptor collection whose configuration page is rendered.
</st:attribute>
<st:attribute name="instances" use="required">
Map&lt;Descriptor,Describable> that defines current instances of those descriptors.
These are used to fill initial values. Other classes that define the get(Descriptor)
method works fine, too.
</st:attribute>
<st:attribute name="targetType">
the type for which descriptors will be configured.
default to ${it.class}
</st:attribute>
</st:documentation>
<j:set var="targetType" value="${h.defaulted(attrs.targetType,it.class)}"/>
<f:section title="${attrs.title}">
<d:invokeBody />
<j:forEach var="d" items="${descriptors}" varStatus="loop">
<j:forEach var="d" items="${descriptors}">
<f:optionalBlock name="${d.jsonSafeClassName}" help="${d.helpFile}"
title="${d.displayName}" checked="${instances.get(d)!=null}">
......
......@@ -6,7 +6,6 @@
<j:if test="${!empty(wrappers)}">
<f:descriptorList title="${%Build Environment}"
descriptors="${wrappers}"
instances="${it.buildWrappers}"
varName="wrapper" />
instances="${it.buildWrappers}" />
</j:if>
</j:jelly>
\ No newline at end of file
......@@ -4,6 +4,5 @@
<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" xmlns:p="/lib/hudson/project">
<f:descriptorList title="${%Post-build Actions}"
descriptors="${h.getPublisherDescriptors(it)}"
instances="${it.publishers}"
varName="publisher" />
instances="${it.publishers}" />
</j:jelly>
\ No newline at end of file
......@@ -8,8 +8,7 @@
</j:invokeStatic>
<f:descriptorList title="${%Build Triggers}"
descriptors="${triggers}"
instances="${it.triggers}"
varName="trigger">
instances="${it.triggers}">
<d:invokeBody />
<!-- pseudo-trigger to configure URL to trigger builds remotely. -->
<st:include page="/hudson/model/BuildAuthorizationToken/config.jelly" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册