2 ~ Licensed to the Apache Software Foundation (ASF) under one
3 ~ or more contributor license agreements. See the NOTICE file
4 ~ distributed with this work for additional information
5 ~ regarding copyright ownership. The ASF licenses this file
6 ~ to you under the Apache License, Version 2.0 (the
7 ~ "License"); you may not use this file except in compliance
8 ~ with the License. You may obtain a copy of the License at
10 ~ http://www.apache.org/licenses/LICENSE-2.0
12 ~ Unless required by applicable law or agreed to in writing,
13 ~ software distributed under the License is distributed on an
14 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 ~ KIND, either express or implied. See the License for the
16 ~ specific language governing permissions and limitations
20 <%@ page contentType="text/html; charset=UTF-8" %>
21 <%@ taglib prefix="s" uri="/struts-tags" %>
22 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
26 <title>Admin: Add Managed Repository</title>
32 <h1>Admin: Add Managed Repository</h1>
34 <div class="warningbox">
36 <strong>WARNING: Repository location already exists.</strong>
41 Are you sure you want to
43 <c:when test="${action == 'addRepository'}">add</c:when>
44 <c:otherwise>update</c:otherwise>
46 the following managed repository?
49 <%-- used c:out in displaying EL's so that they are escaped --%>
51 <table class="infotable">
54 <td><code><c:out value="${repository.id}" /></code></td>
58 <td><c:out value="${repository.name}" /></td>
62 <td><c:out value="${repository.location}" /></td>
65 <td>Index Directory:</td>
66 <td><c:out value="${repository.indexDirectory}" /></td>
70 <%--td>${repository.layout}</td--%>
73 <c:when test="${repository.layout == 'default'}">
84 <td><c:out value="${repository.cronExpression}" /></td>
87 <td>Repository Purge By Days Older Than:</td>
88 <td><c:out value="${repository.daysOlder}" /></td>
91 <td>Repository Purge By Retention Count:</td>
92 <td><c:out value="${repository.retentionCount}" /></td>
95 <td>Releases Included:</td>
96 <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon">
99 <td>Snapshots Included:</td>
100 <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon">
104 <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon">
107 <td>Delete Released Snapshots:</td>
108 <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon">
113 <s:form method="post" action="%{action}" namespace="/admin" validate="true" theme="simple">
114 <div class="buttons">
115 <s:hidden name="repository.id" value="%{#attr.repository.id}"/>
116 <s:hidden name="repository.name" value="%{#attr.repository.name}"/>
117 <s:hidden name="repository.location" value="%{#attr.repository.location}"/>
118 <s:hidden name="repository.indexDir" value="%{#attr.repository.indexDirectory}"/>
119 <s:hidden name="repository.layout" value="%{#attr.repository.layout}"/>
120 <s:hidden name="repository.cronExpression" value="%{#attr.repository.cronExpression}"/>
121 <s:hidden name="repository.daysOlder" value="%{#attr.repository.daysOlder}"/>
122 <s:hidden name="repository.retentionCount" value="%{#attr.repository.retentionCount}"/>
123 <s:hidden name="repository.releases" value="%{#attr.repository.releases}"/>
124 <s:hidden name="repository.snapshots" value="%{#attr.repository.snapshots}"/>
125 <s:hidden name="repository.scanned" value="%{#attr.repository.scanned}"/>
126 <s:hidden name="repository.deleteReleasedSnapshots" value="%{#attr.repository.deleteReleasedSnapshots}"/>
129 <c:when test="${action == 'addRepository'}">
130 <s:submit value="Save" method="confirmAdd"/>
133 <s:submit value="Save" method="confirmUpdate"/>
137 <s:submit value="Cancel" method="execute"/>