- <!-- Compile, package and obfuscate Jalview Applet -->
- <target name="makeApplet" depends="obfuscate"/>
-
- <target name="compileApplet" depends="init,clean">
- <mkdir dir="${outputDir}"/>
- <javac source="1.2"
- target="1.1"
- srcdir="${sourceDir}"
- destdir="${outputDir}"
- debug="${javac.debug}"
- classpath="lib/${jmolJar}"
- includes="jalview/appletgui/**"
- excludes="ext/**,MCview/**,org/**,vamsas/**"
- />
- </target>
-
- <target name="packageApplet" depends="compileApplet, buildPropertiesFile">
- <copy file="${resourceDir}/images/idwidth.gif" toFile="${outputDir}/images/idwidth.gif"/>
- <copy file="${resourceDir}/images/link.gif" toFile="${outputDir}/images/link.gif"/>
- <jar destfile="in.jar">
- <manifest>
- <attribute name="Main-Class" value="jalview.bin.JalviewLite"/>
- </manifest>
- <fileset dir="${outputDir}">
- <include name="com/**"/>
- <include name="MCview/**"/>
- <include name="jalview/**"/>
- <include name=".build_properties"/>
- <include name="images/idwidth.gif"/>
- <include name="images/link.gif"/>
- </fileset>
- </jar>
- </target>
- <target name="obfuscate" depends="-obfuscatefake,-obfuscatereally" description="construct the final jalviewLite applet jar with or without obfuscation">
- </target>
- <target name="-obfuscatefake" depends="packageApplet" if="donotobfuscate">
- <copy file="in.jar" tofile="${jalviewLiteJar}" />
- <delete file="in.jar"/>
- </target>
+ <!-- Compile, package and obfuscate Jalview Applet -->
+ <target name="makeApplet" depends="obfuscate" description="assemble the final jalviewLite applet jar with or without obfuscation"/>
+
+ <target name="compileApplet" depends="init,clean">
+ <mkdir dir="${outputDir}" />
+ <javac source="1.5" target="1.5" srcdir="${sourceDir}" destdir="${outputDir}" debug="${javac.debug}"
+ classpathref="jalviewlite.deps" includes="jalview/appletgui/**"
+ excludes="ext/**,MCview/**,org/**,vamsas/**" />
+ </target>
+
+ <target name="packageApplet" depends="compileApplet, buildPropertiesFile">
+ <copy file="${resourceDir}/images/idwidth.gif" toFile="${outputDir}/images/idwidth.gif" />
+ <copy file="${resourceDir}/images/link.gif" toFile="${outputDir}/images/link.gif" />
+ <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="Codebase" value="*.jalview.org *"/>
+ <attribute name="Caller-Allowable-Codebase" value="*.jalview.org *"/>
+ </manifest>
+ <fileset dir="${outputDir}">
+ <include name="com/**" />
+ <include name="MCview/**" />
+ <include name="jalview/**" />
+ <include name=".build_properties" />
+ <include name="images/idwidth.gif" />
+ <include name="images/link.gif" />
+ </fileset>
+ </jar>
+ </target>
+ <target name="obfuscate" depends="-obfuscatefake,-obfuscatereally">
+ </target>
+ <target name="-obfuscatefake" depends="packageApplet" if="donotobfuscate">
+ <copy file="in.jar" tofile="${jalviewLiteJar}" overwrite="true" />
+ <delete file="in.jar" />
+ </target>