commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/jar JarFileSystem.java
Date Mon, 25 Nov 2002 05:37:13 GMT
adammurdoch    2002/11/24 21:37:13

  Modified:    vfs/src/java/org/apache/commons/vfs Capability.java
               vfs/src/java/org/apache/commons/vfs/provider/jar
                        JarFileSystem.java
  Log:
  Added MANIFEST_ATTRIBUTES capability, which indicates that a file system supports the attributes
  defined by the Jar manifest spec.
  
  Revision  Changes    Path
  1.2       +8 -2      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/Capability.java
  
  Index: Capability.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/Capability.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Capability.java	23 Nov 2002 00:03:56 -0000	1.1
  +++ Capability.java	25 Nov 2002 05:37:13 -0000	1.2
  @@ -70,7 +70,7 @@
       public static final Capability WRITE_CONTENT = new Capability( "WRITE_CONTENT" );
   
       /** File attributes are supported. */
  -    public static final Capability ATTRIBUTES = new Capability( "ATTRIBUTE" );
  +    public static final Capability ATTRIBUTES = new Capability( "ATTRIBUTES" );
   
       /** File last-modified time is supported. */
       public static final Capability LAST_MODIFIED = new Capability( "LAST_MODIFIED" );
  @@ -98,6 +98,12 @@
   
       /** Junctions are supported. */
       public static final Capability JUNCTIONS = new Capability( "JUNCTIONS" );
  +
  +    /**
  +     * The set of attributes defined by the Jar manifest specification are
  +     * supported.  The attributes aren't necessarily stored in a manifest file.
  +     */
  +    public static final Capability MANIFEST_ATTRIBUTES = new Capability( "MANIFEST_ATTRIBUTES"
);
   
       private final String name;
   
  
  
  
  1.9       +2 -1      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/jar/JarFileSystem.java
  
  Index: JarFileSystem.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/jar/JarFileSystem.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JarFileSystem.java	23 Nov 2002 00:33:53 -0000	1.8
  +++ JarFileSystem.java	25 Nov 2002 05:37:13 -0000	1.9
  @@ -118,6 +118,7 @@
           caps.add( Capability.ATTRIBUTES );
           caps.add( Capability.FS_ATTRIBUTES );
           caps.add( Capability.SIGNING );
  +        caps.add( Capability.MANIFEST_ATTRIBUTES );
       }
   
       Attributes getAttributes() throws IOException
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message