<!-- Permissions for running Java applets and applications. Defaults are those suitable for deploying jalview webstart/jalviewLite at www.jalview.org -->
<property name="application.codebase" value="*.jalview.org"/>
- <property name="applet.codebase" value="*.jalview.org"/>
+ <property name="applet.codebase" value="*"/>
<property name="applet.caller-codebase" value="${applet.codebase}"/>
<!-- build directory configuration -->
<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="${application.codebase}"/>
</manifest>
<jar destfile="in.jar" index="true">
<manifest>
<attribute name="Main-Class" value="jalview.bin.JalviewLite" />
- <attribute name="Application-Name" value="JalviewLite Applet"/>
- <!-- <attribute name="Permissions" value="sandbox" /> -->
- <!--<attribute name="Trusted-Lib" value="true" /> -->
+ <attribute name="Application-Name" value="JalviewLite"/>
+ <attribute name="Permissions" value="all-permissions" />
<attribute name="Codebase" value="${applet.codebase}"/>
- <attribute name="Caller-Allowable-Codebase" value="${applet.caller-codebase}"/>
</manifest>
<fileset dir="${outputDir}">
<include name="com/**" />
<include name="jmol/*"/>
</fileset>
<fileset dir=".">
- <include name="jalviewApplet.jar"/>
+ <include name="${jalviewLiteJar}"/>
</fileset>
<fileset dir="appletlib">
<include name="**/*"/>
</fileset>
</copy>
- <jar update="true" index="true" jarfile="${packageDir}/examples/${jalviewLiteJar}"/>
- <jar update="true" index="true" jarfile="${packageDir}/examples/${jmolJar}">
+ <presetdef name="applet.jar">
+ <jar update="true" index="true">
<manifest>
- <attribute name="Application-Name" value="Jmol (bundled with JalviewLite)"/>
- <!-- <attribute name="Permissions" value="sandbox" /> -->
- <!--<attribute name="Trusted-Lib" value="true" /> -->
- <attribute name="Codebase" value="${applet.codebase}"/>
- <attribute name="Caller-Allowable-Codebase" value="${applet.caller-codebase}"/>
- </manifest>
- </jar>
+ <attribute name="Application-Name" value="JalviewLite"/>
+ <attribute name="Permissions" value="all-permissions"/>
+ <attribute name="Codebase" value="${applet.codebase}"/>
+ <attribute name="Caller-Allowable-Codebase" value="${applet.caller-codebase}"/>
+ <attribute name="Application-Library-Allowable-Codebase" value="${applet.codebase}"/>
+ <!--
+ <attribute name="Application-Library-Allowable-Codebase" value="${applet.codebase}"/>
+ -->
+<!-- <attribute name="Trusted-Only" value="true"/>
+-->
+<!-- <attribute name="Trusted-Library" value="true"/>
+-->
+ </manifest>
+ </jar>
+ </presetdef>
+ <presetdef name="applet_tl.jar">
+ <jar update="true" index="true" jarfile="@{jarfile}">
+ <manifest>
+ <attribute name="Application-Name" value="JalviewLite"/>
+ <attribute name="Permissions" value="all-permissions" />
+ <attribute name="Codebase" value="${applet.codebase}"/>
+ <attribute name="Trusted-Only" value="true"/>
+ <attribute name="Trusted-Library" value="true"/>
+ </manifest>
+ </jar>
+
+ </presetdef>
+ <copy file="${packageDir}/examples/${jalviewLiteJar}" tofile="${packageDir}/examples/tl_${jalviewLiteJar}"/>
+ <copy file="${packageDir}/examples/${jmolJar}" tofile="${packageDir}/examples/tl_${jmolJar}"/>
+ <applet.jar jarfile="${packageDir}/examples/${jalviewLiteJar}"/>
+ <applet_tl.jar jarfile="${packageDir}/examples/tl_${jalviewLiteJar}"/>
+ <applet.jar jarfile="${packageDir}/examples/${jmolJar}"/>
+ <applet_tl.jar jarfile="${packageDir}/examples/tl_${jmolJar}"/>
<signjar storepass="${jalview.keystore.pass}" keypass="${jalview.key.pass}" keystore="${jalview.keystore}" alias="${jalview.key}" lazy="false" verbose="false">
<fileset dir="${packageDir}/examples">