aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly')
-rw-r--r--hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly17
1 files changed, 14 insertions, 3 deletions
diff --git a/hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly b/hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly
index 7f4f701..219dca6 100644
--- a/hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly
+++ b/hudson-core/src/main/resources/hudson/tools/ToolInstallation/global.jelly
@@ -22,8 +22,19 @@
<j:set var="toolDescriptor" value="${descriptor}" /><!-- to make this descriptor accessible from properties -->
<table width="100%">
<st:include page="config.jelly" from="${descriptor}" class="${descriptor.clazz}"/>
- <f:descriptorList descriptors="${descriptor.propertyDescriptors}" field="properties"/>
- <f:entry title="">
+ <!-- TODO enable JDK installer when it will be ready -->
+ <j:choose>
+ <j:when test="${descriptor.displayName=='JDK'}">
+ <tr>
+ <td colspan="2"/>
+ <td><div style="text-align:left; color:red; font-weight:bold">${%jdk.installed.disabled}</div></td>
+ </tr>
+ </j:when>
+ <j:otherwise>
+ <f:descriptorList descriptors="${descriptor.propertyDescriptors}" field="properties"/>
+ </j:otherwise>
+ </j:choose>
+ <f:entry title="">
<div align="right">
<f:repeatableDeleteButton value="${%label.delete(descriptor.displayName)}"/>
</div>
@@ -32,4 +43,4 @@
</f:repeatable>
</f:entry>
</f:section>
-</j:jelly>
+</j:jelly> \ No newline at end of file