Package list lwjgl / debian/2.5+dfsg-3 platform_build / build-webstart.xml
debian/2.5+dfsg-3

Tree @debian/2.5+dfsg-3 (Download .tar.gz)

build-webstart.xml @debian/2.5+dfsg-3raw · history · blame

<project name="webstart">
	<target name="webstart_demo" depends="jars">
		<antcall target="-webstart_demo">
		    <param name="keystore" value="applet/lwjglkeystore"/>
			<param name="alias" value="lwjgl"/>			
			<param name="password" value="123456"/>			
		  </antcall>
	</target>
	
	<target name="webstart_demo-release">
		<input 	message="Please type the password for the keystore" addproperty="sign.pwd"/>

		<antcall target="-webstart_demo">
		    <param name="keystore" value="signing/matzon_java_code_signing.keystore"/>
			<param name="alias" value="oddlabs_java_code_signing"/>
			<param name="password" value="${sign.pwd}"/>
		  </antcall>
	</target>	
	
	<!-- -->
	<target name="-webstart_demo" description="Using released files, creates the necessary files used for jnlp demos">
	
		<!-- delete existing temp -->
		<delete dir="${lwjgl.temp}"/>		
		
		<!-- unzip common files -->
		<unzip src="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip" dest="${lwjgl.temp}/jnlp/temp" overwrite="true"/>
		<copy file="${lwjgl.lib}/lwjgl_test.jar" tofile="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/lwjgl_test.jar"/>
		<copy file="${lwjgl.lib}/lwjgl_util.jar" tofile="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/lwjgl_util.jar"/>
		
		<!-- move files to unified structure -->
		<move todir="${lwjgl.temp}/jnlp/temp">
			<fileset dir="${lwjgl.temp}/jnlp/temp/lwjgl-${lwjgl.version}/">
				<include name="**"/>
			</fileset>
		</move>
		
		<!-- move relevant files to root -->
		<move todir="${lwjgl.temp}/jnlp/" flatten="true">
			<fileset dir="${lwjgl.temp}/jnlp/temp">
				<include name="**/jinput.jar"/>
				<include name="**/lwjgl*.jar"/>
			</fileset>
		</move>
		
		<!-- update Trusted-Library -->
		<jar destfile="${lwjgl.temp}/jnlp/lwjgl.jar" update="true">
			<manifest>
				<attribute name="Sealed" value="true"/>
				<attribute name="Trusted-Library" value="true"/>
			</manifest>
		</jar>
		
		<jar destfile="${lwjgl.temp}/jnlp/jinput.jar" update="true">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>
		</jar>
		
		<jar destfile="${lwjgl.temp}/jnlp/lwjgl_util.jar" update="true">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>
		</jar>		
		
		<!-- create native jars -->
		<jar destfile="${lwjgl.temp}/jnlp/native_windows.jar" basedir="${lwjgl.temp}/jnlp/temp/native/windows">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>		
		</jar>
		
		<jar destfile="${lwjgl.temp}/jnlp/native_linux.jar" basedir="${lwjgl.temp}/jnlp/temp/native/linux">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>		
		</jar>
		
		<jar destfile="${lwjgl.temp}/jnlp/native_macosx.jar" basedir="${lwjgl.temp}/jnlp/temp/native/macosx">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>		
		</jar>
		
		<jar destfile="${lwjgl.temp}/jnlp/native_solaris.jar" basedir="${lwjgl.temp}/jnlp/temp/native/solaris">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>		
		</jar>
		
		<!-- create media jar -->
		<jar destfile="${lwjgl.temp}/jnlp/media.jar" basedir="${lwjgl.res}">
			<manifest>
				<attribute name="Sealed" value="true"/>
			</manifest>		
		</jar>
	
		<!-- sign 'em -->
		<signjar jar="${lwjgl.temp}/jnlp/lwjgl.jar" 		alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/lwjgl_util.jar" 	alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/native_solaris.jar" 	alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/native_linux.jar" 	alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/native_macosx.jar" alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/native_windows.jar" 	alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/jinput.jar" 		alias="${alias}" keystore="${keystore}" storepass="${password}"/>
		<signjar jar="${lwjgl.temp}/jnlp/media.jar" 		alias="${alias}" keystore="${keystore}" storepass="${password}"/>
	</target>
</project>