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="ww" uri="/webwork" %>
24 <title>Find Artifact</title>
28 <body onload="document.checksumSearch.file.disabled = false">
30 <h1>Find Artifact</h1>
32 <div id="contentArea">
34 <ww:if test="${applicationScope.uiOptions.appletFindEnabled}">
35 <script type="text/javascript">
36 function generateMd5( file, defVal )
40 var s = document.ChecksumApplet.generateMd5(file);
41 // If there is a space, it's an error message, not a checksum
42 if ( s.indexOf(" ") >= 0 )
55 <span class="errorMessage">JavaScript is disabled: using the file browser will not work.</span>
58 <ww:form method="POST" action="checksumSearch" namespace="/"
59 onsubmit="this.q.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true;">
62 <td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>
64 <input type="file" name="file" size="50" value="" id="checksumSearch_file"/>
67 <ww:textfield label="Checksum" size="50" name="md5"/>
68 <ww:submit value="Search"/>
72 This allows you to search the repository using the checksum of an artifact that you are trying to identify.
73 You can either specify the checksum to look for directly, or scan a local artifact file.
77 To scan a local file, select the file you would like to locate in the remote repository.
80 be uploaded to the server. See the progress bar below for progress of
81 locally creating a checksum that is uploaded to the server after you hit "Search".
86 <applet code="org/apache/maven/archiva/applet/ChecksumApplet.class"
87 archive="archiva-applet.jar"
88 width="400" height="20" name="ChecksumApplet">
93 <ww:form method="POST" action="checksumSearch" namespace="/">
94 <ww:textfield label="Checksum" size="50" name="q"/>
95 <ww:submit value="Search"/>