Initial OpenECOMP policy/engine commit
[policy/engine.git] / ecomp-sdk-app / src / main / webapp / manifest.jsp
1 <%--
2   ================================================================================
3   eCOMP Portal SDK
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   --%>
20 <%@ page language="java" contentType="text/html; charset=UTF-8"
21     pageEncoding="UTF-8"%>
22 <%
23         // Read contents of maven-generated manifest file.
24         final String path = "/META-INF/MANIFEST.MF";
25         java.io.InputStream input = getServletContext().getResourceAsStream(path);
26         java.io.InputStreamReader reader = new java.io.InputStreamReader(input, "UTF-8");
27         char [] buf = new char[1024];
28         int length = reader.read(buf, 0, buf.length);
29         final String manifest = new String(buf, 0, length);
30         reader.close();
31         input.close();
32 %>
33 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
34 <html>
35 <head>
36 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
37 <title>Manifest</title>
38 </head>
39 <body>
40 <h2>
41 Contents of file <%= path %>:
42 </h2>
43 <pre>
44 <%= manifest %>
45 </pre>
46 </body>
47 </html>