File: jnlp2script.xsl

package info (click to toggle)
pixelmed 20150917-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,664 kB
  • ctags: 19,146
  • sloc: java: 117,235; xml: 88,803; makefile: 6,214; sh: 242
file content (28 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<!--
 Copyright (c) 2013 Mathieu Malaterre <malat@debian.org>

 XSLT script to convert an input JNLP file into an output script wrapper (launcher)
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" indent="no" omit-xml-declaration="yes" encoding="utf-8"/>
  <xsl:strip-space elements="*"/>
  <xsl:param name="pixelmed_version"/>
  <xsl:template match="jnlp">
    <xsl:text>#!/bin/sh
</xsl:text>
<xsl:text># generated by jnlp2script.sh
</xsl:text>
<xsl:text>
# </xsl:text>
    <xsl:value-of select="@codebase"/>
<xsl:text>

java -cp /usr/share/java/pixelmed.jar </xsl:text>
    <xsl:value-of select="resources/j2se/@java-vm-args"/>
<xsl:text> </xsl:text>
    <xsl:value-of select="application-desc/@main-class"/>
<xsl:text> "$@"
</xsl:text>
  </xsl:template>
</xsl:stylesheet>