Author: mturk
Date: Thu Aug 6 08:46:42 2009
New Revision: 801540
URL: http://svn.apache.org/viewvc?rev=801540&view=rev
Log:
Use full access flags
Modified:
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Modified:
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java?rev=801540&r1=801539&r2=801540&view=diff
==============================================================================
---
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
(original)
+++
commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestFile.java
Thu Aug 6 08:46:42 2009
@@ -240,11 +240,11 @@
{
File f = new File("ffoo");
f.createNewFile();
+ // Make sure we have GWRITE regardless of default umask
+ f.setFileProtection(EnumSet.of(FileProtection.UWRITE,
FileProtection.UREAD, FileProtection.GWRITE, FileProtection.GREAD));
EnumSet <FileProtection> fp = f.getFileProtection();
System.out.println();
System.out.println("Org Rdonly Protection " + fp);
- // Make sure we have GWRITE regardless of default umask
- f.setFileProtection(EnumSet.of(FileProtection.GWRITE));
// Set the rdonly attributes
f.setFileAttributes(EnumSet.of(FileAttributes.READONLY),
EnumSet.allOf(FileAttributes.class));
// Clear the rdonly attributes