r9825 - helma-ng/trunk/lib

[email protected] Tue, 9 Jun 2009 10:15:54 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090609081554.3B9673D0E3@mia>
Author: hannes
Date: 2009-06-09 10:15:54 +0200 (Tue, 09 Jun 2009)
New Revision: 9825

Modified:
   helma-ng/trunk/lib/helma.policy
Log:
Use substitions for helma-ng directory, improve comment

Details at http://dev.helma.org/trac/helma/changeset/9825

Modified: helma-ng/trunk/lib/helma.policy
===================================================================
--- helma-ng/trunk/lib/helma.policy	2009-06-09 07:59:59 UTC (rev 9824)
+++ helma-ng/trunk/lib/helma.policy	2009-06-09 08:15:54 UTC (rev 9825)
@@ -1,21 +1,23 @@
 // Example policy file for Helma NG
 // Run Helma with the following flags to activate this:
-//    java -Djava.security.manager -Djava.security.policy=lib/helma.policy -jar run.jar
-// See http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html
+//    java -Dhelma.home=... -Djava.security.manager -Djava.security.policy=file:/.../lib/helma.policy
+// replacing "..." with the location of your Helma NG installation.
+// 
+// See <http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html>
 // for more information.
 
-grant codeBase "file:/home/hannes/git/helma-ng/run.jar" {
+grant codeBase "file:${helma.home}/run.jar" {
         permission java.security.AllPermission;
 };
 
-grant codeBase "file:/home/hannes/git/helma-ng/lib/-" {
+grant codeBase "file:${helma.home}/lib/-" {
         permission java.security.AllPermission;
 };
 
-grant codeBase "file:/home/hannes/git/helma-ng/modules/-" {
+grant codeBase "file:${helma.home}/modules/-" {
         permission java.security.AllPermission;
 };
 
-grant codeBase "file:/home/hannes/git/helma-ng/apps/-" {
+grant codeBase "file:${helma.home}/apps/-" {
         permission java.security.AllPermission;
 };