source: extensions/net.sf.basedb.mev/trunk/resources/mev_jnlp.jsp @ 1414

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

Fixes #333: Update to MeV 4.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 4.9 KB
Line 
1<%-- $Id: mev_jnlp.jsp 1414 2011-10-20 07:10:31Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2007 Jari Häkkinen
4  Copyright (C) 2009 Nicklas Nordborg
5
6  This file is part of BASE - BioArray Software Environment.
7  Available at http://base.thep.lu.se/
8
9  BASE is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License
11  as published by the Free Software Foundation; either version 2
12  of the License, or (at your option) any later version.
13
14  BASE is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330,
22  Boston, MA  02111-1307, USA.
23  ------------------------------------------------------------------
24
25  @author Jari, Nicklas
26--%>
27<%@ page
28  pageEncoding="UTF-8"
29  contentType="application/x-java-jnlp-file"
30  session="false"
31  import="net.sf.basedb.core.SessionControl"
32  import="net.sf.basedb.core.DbControl"
33  import="net.sf.basedb.core.BioAssaySet"
34  import="net.sf.basedb.core.File"
35  import="net.sf.basedb.core.FileStoreUtil"
36  import="net.sf.basedb.core.ItemNotFoundException"
37  import="net.sf.basedb.clients.web.Base"
38  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
39  import="net.sf.basedb.util.Values"
40%>
41<%
42response.setHeader("Expires", "0");
43
44final SessionControl sc = Base.getExistingSessionControl(request, true);
45final String ID = sc.getId();
46final int bioAssaySetId = Values.getInt(request.getParameter("bioassayset_id"));
47final String fileType = Values.getString(request.getParameter("filetype"));
48final String mevFileType = fileType.substring(4);
49final String scheme = request.getScheme();
50final String serverName = request.getServerName();
51final int serverPort = request.getServerPort();
52final String homePath = ExtensionsControl.getHomeUrl("net.sf.basedb.mev.launchmev");
53final String servletPath = ExtensionsControl.getServletUrl("net.sf.basedb.mev.launchmev", "");
54final String serverUrl = scheme + "://" + serverName + ":" + serverPort;
55final int jvmMaxMemory = Values.getInt(sc.getUserClientSetting("net.sf.basedb.mev.launchmev.jvm.maxmemory"), 512);
56String filePath = "";
57DbControl dc = sc.newDbControl();
58try
59{
60  BioAssaySet bas = BioAssaySet.getById(dc, bioAssaySetId);
61  File mevFile = FileStoreUtil.getDataFile(dc, bas, fileType, false);
62  if (mevFile == null)
63  {
64    throw new ItemNotFoundException("No " + fileType + " file found on bioassay set: " + 
65      bas.getName());
66  }
67  filePath = mevFile.getPath().toString();
68}
69finally
70{
71  if (dc != null) dc.close();
72}
73out.clearBuffer();
74%><?xml version="1.0" encoding="UTF-8"?>
75<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "http://www.netbeans.org/jnlp/DTD/jnlp.dtd">
76<jnlp spec="1.0+"
77  codebase="<%=serverUrl + homePath%>/jar"
78  version="4.7.3">
79
80  <information>
81    <title>MeV: MultiExperiment Viewer</title>
82    <vendor>http://www.tm4.org</vendor>
83    <homepage href="http://www.tm4.org"/>
84  </information>
85
86  <security>
87    <all-permissions/>
88  </security>
89
90  <resources>
91    <jar href="base-mev-wrapper.jar" /><!-- must be first since main class is here -->
92    <jar href="mev-base.jar"/> 
93    <jar href="mev-algorithm-impl.jar"/>
94    <jar href="mev-algorithm-support.jar"/>
95    <jar href="mev-gui-impl.jar"/>
96    <jar href="mev-gui-support.jar"/>
97    <jar href="mev-util.jar"/>
98
99    <jar href="args4j-2.0.9.jar"/>
100    <jar href="base64.jar"/>
101    <jar href="colt.jar"/>
102    <jar href="comcgh.jar"/>
103    <jar href="educgh.jar"/>
104    <jar href="ftpbean.jar"/>
105    <jar href="goose.jar"/>
106    <jar href="HTTPClient.jar"/>
107    <jar href="images.jar"/>
108    <jar href="j3dcore.jar"/>
109    <jar href="j3dutils.jar"/>
110    <jar href="jai_codec.jar"/>
111    <jar href="jai_core.jar"/>
112    <jar href="jama.jar"/>
113    <jar href="jbcl.jar"/>
114    <jar href="jsch-0.1.39.jar"/>
115    <jar href="JRI.jar"/>
116    <jar href="JSciCore.jar"/>
117    <jar href="JSciPartial.jar"/>
118    <jar href="magetab-parser.jar" />
119    <jar href="normalization.jar"/>
120    <jar href="piccolo.jar"/>
121    <jar href="piccolox.jar"/>
122    <jar href="servlet.jar"/>
123    <jar href="Text_JDBC30.jar"/>
124    <jar href="vecmath.jar"/>
125    <jar href="weka.jar"/>
126    <jar href="xerces.jar"/>
127    <jar href="xml-apis.jar"/>
128   
129    <j2se version="1.6.0+"
130        max-heap-size="<%=jvmMaxMemory%>M"
131        href="http://java.sun.com/products/autodl/j2se"
132      />
133  </resources>
134 
135  <application-desc main-class="net.sf.basedb.mev.webstart.StartMev">
136    <argument>-base:servletdir</argument>
137    <argument><%=serverUrl+servletPath%></argument>
138    <argument>-base:session</argument>
139    <argument><%=ID%></argument>
140    <argument>-base:file</argument>
141    <argument><%=filePath%></argument>
142    <argument>-fileType</argument>
143    <argument><%=mevFileType%></argument>
144    <argument>-base:bioAssaySet</argument>
145    <argument><%=bioAssaySetId%></argument>
146  </application-desc>
147</jnlp>
Note: See TracBrowser for help on using the repository browser.