diff options
Diffstat (limited to 'test/applet')
-rw-r--r-- | test/applet/applet01.html | 11 | ||||
-rw-r--r-- | test/applet/java.policy.applet | 5 | ||||
-rw-r--r-- | test/applet/runapplet.sh | 17 |
3 files changed, 33 insertions, 0 deletions
diff --git a/test/applet/applet01.html b/test/applet/applet01.html new file mode 100644 index 0000000..df8a926 --- /dev/null +++ b/test/applet/applet01.html @@ -0,0 +1,11 @@ +<html> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +<body> +<p> +Provoke AccessControlException while writing to file! +</p> +<applet code=com.jogamp.junit.sec.Applet01 width="200" height="200" + archive="jar/gluegen-rt.jar,gluegen-test.jar"> +</applet> +</body> +</html> diff --git a/test/applet/java.policy.applet b/test/applet/java.policy.applet new file mode 100644 index 0000000..a1ac2a0 --- /dev/null +++ b/test/applet/java.policy.applet @@ -0,0 +1,5 @@ + +grant codeBase "file:/home/sven/projects/JOGL/gluegen/test/applet/jar/*" { + permission java.security.AllPermission; +}; + diff --git a/test/applet/runapplet.sh b/test/applet/runapplet.sh new file mode 100644 index 0000000..cc14554 --- /dev/null +++ b/test/applet/runapplet.sh @@ -0,0 +1,17 @@ +#! /bin/bash + +RDIR=`pwd` + +rm -rf jar +rm -f gluegen-test.jar + +mkdir jar +cp ../../build/*jar jar/ +cp ../../build/test/build/gluegen-test.jar . + +/opt-linux-x86_64/jdk1.6.0_35/bin/java \ + -Djogamp.debug.IOUtil -Djogamp.debug.JNILibLoader -Djogamp.debug.TempFileCache -Djogamp.debug.JarUtil -Djogamp.debug.TempJarCache \ + -Djava.security.policy=$RDIR/java.policy.applet \ + -Dfile.encoding=UTF-8 \ + sun.applet.AppletViewer $RDIR/applet01.html + |