source: extensions/net.sf.basedb.mev/tags/1.8/resources/others.jsp @ 1444

Last change on this file since 1444 was 1416, checked in by Nicklas Nordborg, 12 years ago

Fixes #328: Switch to GPL3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 2.2 KB
Line 
1<%-- $Id: others.jsp 1416 2011-10-20 07:23:31Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2007 Jari Häkkinen
4  Copyright (C) 2009 Nicklas Nordborg
5
6  This file is part of the MeV Launcher extension for BASE.
7  Available at http://baseplugins.thep.lu.se/
8  BASE main site: http://base.thep.lu.se/
9  -----------------------------------------------------------
10 
11  This is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License
13  as published by the Free Software Foundation; either version 3
14  of the License, or (at your option) any later version.
15 
16  The software is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  GNU General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with BASE. If not, see <http://www.gnu.org/licenses/>.
23  ------------------------------------------------------------------
24
25  @author Jari, Nicklas
26--%>
27<%@ page
28  pageEncoding="UTF-8"
29  session="false"
30  contentType="application/x-java-jnlp-file"
31  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
32%>
33<%
34response.setHeader("Expires", "0");
35final String scheme = request.getScheme();
36/*
37  Can't have .jar in query string since it makes Linux java
38  think the jnlp file is a jar file.
39*/
40final String jar = request.getQueryString() + ".jar";
41final String serverName = request.getServerName();
42final int serverPort = request.getServerPort();
43final String homeUrl = ExtensionsControl.getHomeUrl("net.sf.basedb.mev.launchmev");
44final String fullHomeUrl = scheme + "://" + serverName + ":" + serverPort + homeUrl;
45out.clearBuffer();
46%><?xml version="1.0" encoding="UTF-8"?>
47<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "http://www.netbeans.org/jnlp/DTD/jnlp.dtd">
48<jnlp 
49  spec="1.0+"
50  codebase="<%=fullHomeUrl%>/jar"
51  version="4.6.1"
52  >
53  <information>
54    <title>MeV: MultiExperiment Viewer</title>
55    <vendor>http://www.tm4.org</vendor>
56    <homepage href="http://www.tm4.org"/>
57  </information>
58 
59  <security>
60    <all-permissions/>
61  </security>
62 
63  <resources>
64    <jar href="<%=jar%>" />
65  </resources>
66  <component-desc/>
67</jnlp>
Note: See TracBrowser for help on using the repository browser.