tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laura Reising <laura.reis...@arcor.de>
Subject catalina.policy: "file:"?
Date Tue, 08 Jan 2002 11:24:58 GMT
Hello list,

I'm still busy with my policy-Problem from yesterday ("Give webapps
FilePermissions in catalina.policy").

I didn't find any solution yet, but I have a question about "file:".

This code I found under
"http://www.apachelabs.org/tomcat-dev/200010.mbox/%3C20001006182400.31892.qmail@locus.apache.org%3E":

<---snip--->
grant codeBase "file:${work.dir}/-" {
    permission java.io.FilePermission "${doc.root}/-", "read";
    permission java.io.FilePermission "${work.dir}/-",
"read,write,delete";
};
</---snip--->

If you're sharp-eyed, you see that in the codebase the path is
""file:${work.dir}/-", while in the permission-statement it is
"${work.dir}/-" (without the "file:").

Can anybody tell me why this is so? Or is this a mistake in the example?

Thanx a lot!

Laura




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message