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?
50 <table class="infotable">
53 <td><code>${repository.id}</code></td>
57 <td>${repository.name}</td>
61 <td>${repository.location}</td>
64 <td>Index Directory:</td>
65 <td>${repository.indexDir}</td>
69 <%--td>${repository.layout}</td--%>
72 <c:when test="${repository.layout == 'default'}">
83 <td>${repository.refreshCronExpression}</td>
86 <td>Repository Purge By Days Older Than:</td>
87 <td>${repository.daysOlder}</td>
90 <td>Repository Purge By Retention Count:</td>
91 <td>${repository.retentionCount}</td>
94 <td>Releases Included:</td>
95 <td class="${repository.releases ? 'donemark' : 'errormark'} booleanIcon">
98 <td>Snapshots Included:</td>
99 <td class="${repository.snapshots ? 'donemark' : 'errormark'} booleanIcon">
103 <td class="${repository.scanned ? 'donemark' : 'errormark'} booleanIcon">
106 <td>Delete Released Snapshots:</td>
107 <td class="${repository.deleteReleasedSnapshots ? 'donemark' : 'errormark'} booleanIcon">
112 <s:form method="post" action="%{action}" namespace="/admin" validate="true" theme="simple">
113 <div class="buttons">
114 <s:hidden name="repository.id" value="%{#attr.repository.id}"/>
115 <s:hidden name="repository.name" value="%{#attr.repository.name}"/>
116 <s:hidden name="repository.location" value="%{#attr.repository.location}"/>
117 <s:hidden name="repository.indexDir" value="%{#attr.repository.indexDir}"/>
118 <s:hidden name="repository.layout" value="%{#attr.repository.layout}"/>
119 <s:hidden name="repository.refreshCronExpression" value="%{#attr.repository.refreshCronExpression}"/>
120 <s:hidden name="repository.daysOlder" value="%{#attr.repository.daysOlder}"/>
121 <s:hidden name="repository.retentionCount" value="%{#attr.repository.retentionCount}"/>
122 <s:hidden name="repository.releases" value="%{#attr.repository.releases}"/>
123 <s:hidden name="repository.snapshots" value="%{#attr.repository.snapshots}"/>
124 <s:hidden name="repository.scanned" value="%{#attr.repository.scanned}"/>
125 <s:hidden name="repository.deleteReleasedSnapshots" value="%{#attr.repository.deleteReleasedSnapshots}"/>
128 <c:when test="${action == 'addRepository'}">
129 <s:submit value="Save" method="confirmAdd"/>
132 <s:submit value="Save" method="confirmUpdate"/>
136 <s:submit value="Cancel" method="execute"/>