git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1400 explicit security permissions for Desktop
[jalview.git]
/
build.xml
diff --git
a/build.xml
b/build.xml
index
ee0542d
..
3eae6af
100755
(executable)
--- a/
build.xml
+++ b/
build.xml
@@
-88,6
+88,8
@@
<!-- Don't change anything below here unless you know what you are doing! -->
<!-- Url path for WebStart in JNLP file -->
<property name="WebStartLocation" value="http://www.jalview.org/webstart" />
<!-- Don't change anything below here unless you know what you are doing! -->
<!-- Url path for WebStart in JNLP file -->
<property name="WebStartLocation" value="http://www.jalview.org/webstart" />
+ <!-- Webstart Image - looked for in resources/images -->
+ <property name="WebStartImage" value="JalviewLogo_big.png"/>
<!-- J2SE version needed for webstart launch -->
<property name="j2sev" value="1.6+"/>
<!-- build directory configuration -->
<!-- J2SE version needed for webstart launch -->
<property name="j2sev" value="1.6+"/>
<!-- build directory configuration -->
@@
-232,6
+234,12
@@
<include name="*.jar" />
</fileset>
</signjar>
<include name="*.jar" />
</fileset>
</signjar>
+ <copy todir="${packageDir}">
+ <fileset dir="${resourceDir}/images">
+ <include name="${WebStartImage}"/>
+ </fileset>
+ </copy>
+
<taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties" />
<!-- codebase="http://www.jalview.org/jalview/webstart" -->
<taskdef classpathref="build.classpath" resource="com/roxes/tools/ant/taskdefs.properties" />
<!-- codebase="http://www.jalview.org/jalview/webstart" -->
@@
-243,7
+251,7
@@
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
- <icon href="JalviewLogo_big.png" />
+ <icon href="${WebStartImage}" />
<offline_allowed/>
</information>
<resources>
<offline_allowed/>
</information>
<resources>
@@
-271,7
+279,7
@@
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
- <icon href="JalviewLogo_big.png" />
+ <icon href="${WebStartImage}" />
<offline_allowed />
</information>
<resources>
<offline_allowed />
</information>
<resources>
@@
-299,7
+307,7
@@
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
<homepage href="http://www.jalview.org" />
<description>Jalview Multiple Alignment Editor</description>
<description kind="short">Jalview</description>
- <icon href="JalviewLogo_big.png" />
+ <icon href="${WebStartImage}" />
<offline_allowed />
</information>
<resources>
<offline_allowed />
</information>
<resources>
@@
-338,7
+346,8
@@
<association mime-type="application-x/ext-file" extensions="aln"/>
<association mime-type="application-x/ext-file" extensions="pir"/>
<association mime-type="application-x/ext-file" extensions="amsa"/>
<association mime-type="application-x/ext-file" extensions="aln"/>
<association mime-type="application-x/ext-file" extensions="pir"/>
<association mime-type="application-x/ext-file" extensions="amsa"/>
- <association mime-type="application-x/ext-file" extensions="stk"/>-->
+ <association mime-type="application-x/ext-file" extensions="stk"/>
+ <association mime-type="application-x/ext-file" extensions="jar"/>-->
</target>
</target>
@@
-406,6
+415,10
@@
<jar destfile="${packageDir}/${outputJar}">
<manifest>
<attribute name="Main-Class" value="jalview.bin.Jalview" />
<jar destfile="${packageDir}/${outputJar}">
<manifest>
<attribute name="Main-Class" value="jalview.bin.Jalview" />
+ <attribute name="Permissions" value="all-permissions" />
+ <!--<attribute name="Trusted-Lib" value="true" /> -->
+ <attribute name="Application-Name" value="Jalview Desktop"/>
+ <attribute name="Codebase" value="*"/>
</manifest>
<fileset dir="${outputDir}/">
<exclude name="cache*/**" />
</manifest>
<fileset dir="${outputDir}/">
<exclude name="cache*/**" />