Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-142 -- removing unused jsp file. See: http://www.nabble.com/remove-raw-schema.jsp--td14582104.html

Ryan McKinleyd94f1b68c8e8
diff --git a/src/webapp/resources/admin/raw-schema.jsp b/src/webapp/resources/admin/raw-schema.jsp
deleted file mode 100644
index 87839fd1f22..00000000000
--- a/src/webapp/resources/admin/raw-schema.jsp
+++ /dev/null
@@ -1,39 +0,0 @@
-<%--
- 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.
---%>
-<%@ page import="org.apache.solr.core.SolrCore,
- org.apache.solr.schema.IndexSchema"%>
-<%@ page import="java.io.InputStreamReader"%>
-<%@ page import="java.io.Reader"%>
-<%@ page contentType="text/plain;charset=UTF-8" language="java" %>
-<%
- SolrCore core = (SolrCore) request.getAttribute("org.apache.solr.SolrCore");
- if (core == null) {
- String coreParam = request.getParameter("core");
- core = coreParam != null? org.apache.solr.core.MultiCore.getRegistry().getCore(coreParam) : null;
- }
- if (core == null)
- core = SolrCore.getSolrCore();
-
- IndexSchema schema = core.getSchema();
- Reader input = new InputStreamReader(schema.getInputStream());
- char[] buf = new char[4096];
- while (true) {
- int len = input.read(buf);
- if (len<=0) break;
- out.write(buf,0,len);
- }
-%>