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 <%@ taglib prefix="s" uri="/struts-tags" %>
21 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
25 <title>Admin: Add Managed Repository</title>
31 <h1>Admin: Add Managed Repository</h1>
33 <div class="warningbox">
35 <strong>WARNING: Repository location already exists.</strong>
40 Are you sure you want to
42 <c:when test="${action == 'addRepository'}">add</c:when>
43 <c:otherwise>update</c:otherwise>
45 the following managed repository?
49 <table class="infotable">
52 <td><code>${repository.id}</code></td>
56 <td>${repository.name}</td>
60 <td>${repository.location}</td>
63 <td>Index Directory:</td>
64 <td>${repository.indexDir}</td>
68 <%--td>${repository.layout}</td--%>
71 <c:when test="${repository.layout == 'default'}">
82 <td>${repository.refreshCronExpression}</td>
85 <td>Repository Purge By Days Older Than:</td>
86 <td>${repository.daysOlder}</td>
89 <td>Repository Purge By Retention Count:</td>
90 <td>${repository.retentionCount}</td>
93 <td>Releases Included:</td>
94 <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon">
97 <td>Snapshots Included:</td>
98 <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon">
102 <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon">
105 <td>Delete Released Snapshots:</td>
106 <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon">
111 <s:form method="post" action="%{action}" namespace="/admin" validate="true" theme="simple">
112 <div class="buttons">
113 <s:hidden name="repository.id" value="%{#attr.repository.id}"/>
114 <s:hidden name="repository.name" value="%{#attr.repository.name}"/>
115 <s:hidden name="repository.location" value="%{#attr.repository.location}"/>
116 <s:hidden name="repository.indexDir" value="%{#attr.repository.indexDir}"/>
117 <s:hidden name="repository.layout" value="%{#attr.repository.layout}"/>
118 <s:hidden name="repository.refreshCronExpression" value="%{#attr.repository.refreshCronExpression}"/>
119 <s:hidden name="repository.daysOlder" value="%{#attr.repository.daysOlder}"/>
120 <s:hidden name="repository.retentionCount" value="%{#attr.repository.retentionCount}"/>
121 <s:hidden name="repository.releases" value="%{#attr.repository.releases}"/>
122 <s:hidden name="repository.snapshots" value="%{#attr.repository.snapshots}"/>
123 <s:hidden name="repository.scanned" value="%{#attr.repository.scanned}"/>
124 <s:hidden name="repository.deleteReleasedSnapshots" value="%{#attr.repository.deleteReleasedSnapshots}"/>
127 <c:when test="${action == 'addRepository'}">
128 <s:submit value="Save" method="confirmAdd"/>
131 <s:submit value="Save" method="confirmUpdate"/>
135 <s:submit value="Cancel" method="execute"/>