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