2 ~ Copyright 2000-2011 JetBrains s.r.o.
\r
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
\r
5 ~ you may not use this file except in compliance with the License.
\r
6 ~ You may obtain a copy of the License at
\r
8 ~ http://www.apache.org/licenses/LICENSE-2.0
\r
10 ~ Unless required by applicable law or agreed to in writing, software
\r
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
\r
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 ~ See the License for the specific language governing permissions and
\r
14 ~ limitations under the License.
\r
16 <%@ include file="/include-internal.jsp"%>
\r
17 <%@ taglib prefix="forms" tagdir="/WEB-INF/tags/forms" %>
\r
18 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
\r
19 <%@ taglib prefix="l" tagdir="/WEB-INF/tags/layout" %>
\r
20 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
\r
21 <jsp:useBean id="name" scope="request" type="java.lang.String"/>
\r
22 <jsp:useBean id="clazz" scope="request" type="java.lang.String"/>
\r
23 <jsp:useBean id="style" scope="request" type="java.lang.String"/>
\r
24 <jsp:useBean id="value" scope="request" type="java.lang.String"/>
\r
25 <jsp:useBean id="settingsUrl" scope="request" type="java.lang.String"/>
\r
26 <jsp:useBean id="items" scope="request" type="java.util.Collection<jetbrains.buildServer.nuget.server.toolRegistry.ui.ToolInfo >"/>
\r
28 <props:selectProperty name="${name}" className="${clazz}" style="${style}">
\r
29 <c:set var="isSelected" value="${value eq ''}"/>
\r
30 <props:option value="" selected="${isSelected}">-- Select NuGet version to run --</props:option>
\r
31 <c:set var="hasSelected" value="${isSelected}"/>
\r
32 <c:forEach var="it" items="${items}">
\r
33 <c:set var="isSelected" value="${it.id eq value}"/>
\r
34 <props:option value="${it.id}" selected="${isSelected}"><c:out value="${it.version}"/></props:option>
\r
35 <c:if test="${isSelected}"><c:set var="hasSelected" value="${true}"/></c:if>
\r
37 <c:if test="${not hasSelected}">
\r
38 <props:option value="${value}" selected="${true}">Custom: <c:out value="${value}"/></props:option>
\r
40 </props:selectProperty>
\r
41 <span class="smallNote">Specify NuGet.exe version.
\r
42 Check intalled NuGet Commandline tools in <a href="<c:url value="${settingsUrl}"/>">NuGet Settings</a>
\r
44 <span class="error" id="error_${name}"></span>
\r