123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <%--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- --%>
-
- <%@ taglib prefix="s" uri="/struts-tags" %>
-
- <html>
- <head>
- <title>Find Artifact</title>
- <s:head/>
- </head>
-
- <body onload="document.checksumSearch.file.disabled = false">
-
- <h1>Find Artifact</h1>
-
- <div id="contentArea">
- <div id="searchBox">
- <s:if test="${applicationScope.uiOptions.appletFindEnabled}">
- <script type="text/javascript">
- function generateMd5( file, defVal )
- {
- if ( file )
- {
- var s = document.ChecksumApplet.generateMd5(file);
- // If there is a space, it's an error message, not a checksum
- if ( s.indexOf(" ") >= 0 )
- {
- alert(s);
- return "";
- }
- else
- return s;
- }
- return defVal;
- }
- </script>
-
- <noscript>
- <span class="errorMessage">JavaScript is disabled: using the file browser will not work.</span>
- </noscript>
-
- <s:form method="POST" action="checksumSearch" namespace="/"
- onsubmit="this.q.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true;">
- <s:hidden name="q"/>
- <tr>
- <td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>
- <td>
- <input type="file" name="file" size="50" value="" id="checksumSearch_file"/>
- </td>
- </tr>
- <s:textfield label="Checksum" size="50" name="md5"/>
- <s:submit value="Search"/>
- </s:form>
-
- <p>
- This allows you to search the repository using the checksum of an artifact that you are trying to identify.
- You can either specify the checksum to look for directly, or scan a local artifact file.
- </p>
-
- <p>
- To scan a local file, select the file you would like to locate in the remote repository.
- The entire file will
- <b>not</b>
- be uploaded to the server. See the progress bar below for progress of
- locally creating a checksum that is uploaded to the server after you hit "Search".
- <s:actionerror/>
- </p>
-
- <p>
- <applet code="org/apache/maven/archiva/applet/ChecksumApplet.class"
- archive="archiva-applet.jar"
- width="400" height="20" name="ChecksumApplet">
- </applet>
- </p>
- </s:if>
- <s:else>
- <s:form method="POST" action="checksumSearch" namespace="/">
- <s:textfield label="Checksum" size="50" name="q"/>
- <s:submit value="Search"/>
- </s:form>
-
- <p>
- <s:actionerror/>
- </p>
- </s:else>
- </div>
- </div>
-
- </body>
- </html>
|