ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject <Jspc> Task
Date Thu, 02 Sep 2004 14:17:27 GMT
Hello All-
 <java
classpath="F:\United\scgdev\WebDev\eFACT;F:/Tomcat/TOMCAT~2.0/JAKART~1.0/com
mon/lib/jasper-compiler.jar;F:/Tomcat/TOMCAT~2.0/JAKART~1.0/common/lib/jaspe
r-runtime.jar;F:\Tomcat\TOMCAT~1.0\bin\commons-logging-api.jar;${classpath}"
classname="org.apache.jasper.JspC" failonerror="true">
   <arg value="uriroot=&quot;F:/United/jsp/&quot;"></arg>
   <arg value="outputDir=&quot;F:/United/jsp/java&quot;"></arg>
   <arg value="package=&quot;jsp&quot;"></arg>
   <permissions>
    <revoke name="org.apache.jasper.JspC"
class="java.util.RuntimePermission"></revoke>
    <grant class="java.util.PropertyPermission" name="user.home"
action="read,write"></grant>
   </permissions>
</java>

build.xml:167: Class org.apache.tools.ant.types.Permissions$Permission
doesn't support the "action" attribute.

the Ant 1.6.1 doc says

<permissions>
  <grant class="java.net.SocketPermission" name="foo.bar.com"
action="connect"/>
  <grant class="java.util.PropertyPermission" name="user.home"
action="read,write"/>
</permissions>
Grants the base set of permissions with the addition of a SocketPermission
to connect to foo.bar.com and the permission to read and write the user.home
system property.

How does one setup the java.util.PropertyPermission correctly within
build.xml ???

Thanks,
Martin-



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message