Add applettest ant target for easy LWJGL applet testing in appletviewer

This commit is contained in:
Elias Naur 2006-11-09 11:03:55 +00:00
parent 9f3de4fd81
commit 6d9aa21e96
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
keystore "lwjglkeystore";
grant SignedBy "lwjgl" {
permission java.security.AllPermission;
};

View File

@ -345,6 +345,13 @@
</jar>
</target>
<target name="applettest" depends="applet">
<exec executable="appletviewer">
<arg value="-J-Djava.security.policy=applet/appletviewer.policy"/>
<arg path="applet/applet.html"/>
</exec>
</target>
<target name="runtest" depends="all">
<fail message="test.mainclass is not set. Use 'ant -Dtest.mainclass=&lt;main-class&gt; runtest'" unless="test.mainclass"/>
<condition property="native_path" value="libs/win32">