1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 ~ Copyright 2005-2006 The Apache Software Foundation.
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
9 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
18 <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
19 "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
23 <field-validator type="requiredstring">
24 <message>You must enter the repository identifier.</message>
26 <!--field-validator type="regex">
27 <param name="expression"><![CDATA[([A-Z][a-z][0-9])]]></param>
28 <message>Id must not have special characters.</message>
32 <field-validator type="requiredstring">
33 <message>You must enter the repository name.</message>
38 <field-validator type="requiredstring">
39 <message>You must enter the repository URL.</message>
42 <field name="snapshotsInterval">
43 <field-validator type="regex">
44 <param name="expression"><![CDATA[([0-9])]]></param>
45 <message>The value must be numeric</message>
48 <field name="releasesInterval">
49 <field-validator type="regex">
50 <param name="expression"><![CDATA[([0-9])]]></param>
51 <message>The value must be numeric</message>
55 <!-- TODO: is the validation correct? -->
56 <validator type="interval">
61 <field-validator type="required">
62 <message>Repository type is required.</message>
64 <field-validator type="fieldexpression">
65 <param name="expression">layout in {"legacy", "default"}</param>
66 <message>Invalid repository type.</message>
69 <field name="snapshotsPolicy">
70 <field-validator type="fieldexpression">
71 <param name="expression">snapshotsPolicy in { "disabled", "daily", "hourly", "never", "interval" }</param>
72 <message>Invalid snapshot policy.</message>
75 <field name="releasesPolicy">
76 <field-validator type="fieldexpression">
77 <param name="expression">releasesPolicy in { "disabled", "daily", "hourly", "never", "interval" }</param>
78 <message>Invalid releases policy.</message>
82 <field name="managedRepository">
83 <field-validator type="requiredstring">
84 <message>A managed repository must be selected.</message>