ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/testcases/org/apache/tools/ant/types PermissionsTest.java
Date Thu, 28 Aug 2003 12:24:31 GMT
antoine     2003/08/28 05:24:31

  Modified:    src/testcases/org/apache/tools/ant/types
                        PermissionsTest.java
  Log:
  Make the tests pass under Gump
  
  Revision  Changes    Path
  1.2       +7 -1      ant/src/testcases/org/apache/tools/ant/types/PermissionsTest.java
  
  Index: PermissionsTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/types/PermissionsTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PermissionsTest.java	27 Aug 2003 14:23:17 -0000	1.1
  +++ PermissionsTest.java	28 Aug 2003 12:24:31 -0000	1.2
  @@ -86,7 +86,13 @@
           perm.setName("java.home");
           perm.setClass("java.util.PropertyPermission");
           perms.addConfiguredGrant(perm);
  -        
  +
  +        perm = new Permissions.Permission();
  +        perm.setActions("read");
  +        perm.setName("file.encoding");
  +        perm.setClass("java.util.PropertyPermission");
  +        perms.addConfiguredGrant(perm);
  +
           // Revoke permission to write user.home (granted above via user.*), still able
to read though.
           // and the default granted permission to read os.name. 
           perm = new Permissions.Permission();
  
  
  

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


Mime
View raw message