[jboss-cvs] JBossAS SVN: r80540 - in projects/vfs/tags: 2.0.0.CR3 and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 4 20:11:25 EST 2008


Author: alesj
Date: 2008-11-04 20:11:25 -0500 (Tue, 04 Nov 2008)
New Revision: 80540

Added:
   projects/vfs/tags/2.0.0.CR3/
   projects/vfs/tags/2.0.0.CR3/pom.xml
   projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java
   projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/helpers/
Removed:
   projects/vfs/tags/2.0.0.CR3/pom.xml
   projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java
Log:
[maven-release-plugin]  copy for tag 2.0.0.CR3

Copied: projects/vfs/tags/2.0.0.CR3 (from rev 80496, projects/vfs/branches/Branch_2_0)

Deleted: projects/vfs/tags/2.0.0.CR3/pom.xml
===================================================================
--- projects/vfs/branches/Branch_2_0/pom.xml	2008-11-04 13:43:43 UTC (rev 80496)
+++ projects/vfs/tags/2.0.0.CR3/pom.xml	2008-11-05 01:11:25 UTC (rev 80540)
@@ -1,122 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <parent>
-    <groupId>org.jboss</groupId>
-    <artifactId>jboss-parent</artifactId>
-    <version>4</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.jboss</groupId>
-  <artifactId>jboss-vfs</artifactId>
-  <packaging>jar</packaging>
-  <version>2.0.0-SNAPSHOT</version>
-  <name>JBoss VFS</name>
-  <url>http://www.jboss.org</url>
-  <description>A VFS library</description>
- <scm>
-    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/vfs/branches/Branch_2_0</connection>    
-    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/vfs/branches/Branch_2_0</developerConnection>
-    <url>https://svn.jboss.org/repos/jbossas/projects/vfs/branches/Branch_2_0</url>
-  </scm>
-  <licenses>
-    <license>
-      <name>lgpl</name>
-      <url>http://repository.jboss.org/licenses/lgpl.txt</url>
-    </license>
-  </licenses>
-  <organization>
-    <name>JBoss, A division of Red Hat, Inc</name>
-    <url>http://www.jboss.org</url>
-  </organization>
-
-  <properties>
-    <version.jboss.common.core>2.2.9.GA</version.jboss.common.core>
-    <version.jboss.logging>2.0.5.GA</version.jboss.logging>
-    <version.jboss.test>1.1.0.GA</version.jboss.test>
-    <version.junit>4.4</version.junit>
-  </properties>
-
-  <build>
-    <sourceDirectory>src/main/java</sourceDirectory>
-    <testSourceDirectory>src/test/java</testSourceDirectory>
-    <finalName>${artifactId}</finalName>
-    <testResources>
-      <testResource>
-        <directory>src/test/resources</directory>
-      </testResource>
-    </testResources>
-    <plugins>
-      
-      <!-- define how we want compilation to take place
-        here, we accept most of the defaults but say that we want the
-        optimization flag set, and define the source and target to be 1.5,
-        these setting will be inherited by child projects -->
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0</version>
-        <configuration>
-          <debug>true</debug>
-          <source>1.5</source>
-          <target>1.5</target>
-        </configuration>
-      </plugin>
-      <!-- define that we wish to create src jars -->
-      <plugin>
-        <artifactId>maven-source-plugin</artifactId>
-        <inherited>true</inherited>
-        <executions>
-          <execution>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.3.1</version>
-        <configuration>
-          <forkMode>always</forkMode> <!-- required to correctly run the PojoServer tests -->
-          <useSystemClassLoader>true</useSystemClassLoader>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-          <testFailureIgnore>true</testFailureIgnore>
-        </configuration>
-      </plugin>
-      <plugin>
-         <groupId>org.apache.maven.plugins</groupId>
-         <artifactId>maven-release-plugin</artifactId>
-         <version>2.0-beta-7</version>
-         <configuration>
-           <tagBase>https://svn.jboss.org/repos/jbossas/projects/vfs/tags</tagBase>
-         </configuration>
-       </plugin>
-    </plugins>
-  </build>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-common-core</artifactId>
-      <version>${version.jboss.common.core}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-spi</artifactId>
-      <version>${version.jboss.logging}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jboss.test</groupId>
-      <artifactId>jboss-test</artifactId>
-      <version>${version.jboss.test}</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>${version.junit}</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-</project>

Copied: projects/vfs/tags/2.0.0.CR3/pom.xml (from rev 80539, projects/vfs/branches/Branch_2_0/pom.xml)
===================================================================
--- projects/vfs/tags/2.0.0.CR3/pom.xml	                        (rev 0)
+++ projects/vfs/tags/2.0.0.CR3/pom.xml	2008-11-05 01:11:25 UTC (rev 80540)
@@ -0,0 +1,122 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss</groupId>
+  <artifactId>jboss-vfs</artifactId>
+  <packaging>jar</packaging>
+  <version>2.0.0.CR3</version>
+  <name>JBoss VFS</name>
+  <url>http://www.jboss.org</url>
+  <description>A VFS library</description>
+ <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/vfs/tags/2.0.0.CR3</connection>    
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/vfs/tags/2.0.0.CR3</developerConnection>
+    <url>https://svn.jboss.org/repos/jbossas/projects/vfs/tags/2.0.0.CR3</url>
+  </scm>
+  <licenses>
+    <license>
+      <name>lgpl</name>
+      <url>http://repository.jboss.org/licenses/lgpl.txt</url>
+    </license>
+  </licenses>
+  <organization>
+    <name>JBoss, A division of Red Hat, Inc</name>
+    <url>http://www.jboss.org</url>
+  </organization>
+
+  <properties>
+    <version.jboss.common.core>2.2.9.GA</version.jboss.common.core>
+    <version.jboss.logging>2.0.5.GA</version.jboss.logging>
+    <version.jboss.test>1.1.0.GA</version.jboss.test>
+    <version.junit>4.4</version.junit>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/java</sourceDirectory>
+    <testSourceDirectory>src/test/java</testSourceDirectory>
+    <finalName>${artifactId}</finalName>
+    <testResources>
+      <testResource>
+        <directory>src/test/resources</directory>
+      </testResource>
+    </testResources>
+    <plugins>
+      
+      <!-- define how we want compilation to take place
+        here, we accept most of the defaults but say that we want the
+        optimization flag set, and define the source and target to be 1.5,
+        these setting will be inherited by child projects -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0</version>
+        <configuration>
+          <debug>true</debug>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+      <!-- define that we wish to create src jars -->
+      <plugin>
+        <artifactId>maven-source-plugin</artifactId>
+        <inherited>true</inherited>
+        <executions>
+          <execution>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3.1</version>
+        <configuration>
+          <forkMode>always</forkMode> <!-- required to correctly run the PojoServer tests -->
+          <useSystemClassLoader>true</useSystemClassLoader>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <testFailureIgnore>true</testFailureIgnore>
+        </configuration>
+      </plugin>
+      <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-release-plugin</artifactId>
+         <version>2.0-beta-7</version>
+         <configuration>
+           <tagBase>https://svn.jboss.org/repos/jbossas/projects/vfs/tags</tagBase>
+         </configuration>
+       </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>${version.jboss.common.core}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>${version.jboss.logging}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.test</groupId>
+      <artifactId>jboss-test</artifactId>
+      <version>${version.jboss.test}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>${version.junit}</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Deleted: projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java
===================================================================
--- projects/vfs/branches/Branch_2_0/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java	2008-11-04 13:43:43 UTC (rev 80496)
+++ projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java	2008-11-05 01:11:25 UTC (rev 80540)
@@ -1,148 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.virtual.spi.cache;
-
-import java.io.IOException;
-import java.net.URI;
-import java.net.URL;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
-
-import org.jboss.logging.Logger;
-import org.jboss.virtual.VFS;
-import org.jboss.virtual.VFSUtils;
-import org.jboss.virtual.VirtualFile;
-import org.jboss.virtual.spi.VFSContext;
-
-/**
- * Simple vfs cache factory.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-public class VFSCacheFactory
-{
-   private static final Object lock = new Object();
-   private static Logger log = Logger.getLogger(VFSCacheFactory.class);
-
-   private static VFSCache instance;
-
-   private VFSCacheFactory()
-   {
-   }
-
-   /**
-    * Get VFS cache instance.
-    *
-    * @return the vfs cache instance
-    */
-   public static VFSCache getInstance()
-   {
-      if (instance == null)
-      {
-         synchronized (lock)
-         {
-            if (instance == null)
-               instance = AccessController.doPrivileged(new VFSCacheCreatorAction());
-         }
-      }
-
-      return instance;
-   }
-
-   /**
-    * Set instance.
-    *
-    * This should be used with care.
-    * Better to leave it to getInstance method creation.
-    *
-    * @param cache cache instance to set
-    */
-   public static void setInstance(VFSCache cache)
-   {
-      if (cache != null && instance != null && instance instanceof NoopVFSCache == false)
-         throw new IllegalArgumentException("Instance already set!");
-
-      instance = cache;
-   }
-
-   private static class VFSCacheCreatorAction implements PrivilegedAction<VFSCache>
-   {
-      public VFSCache run()
-      {
-         try
-         {
-            String className = System.getProperty(VFSUtils.VFS_CACHE_KEY);
-            if (className != null)
-            {
-               log.info("Initializing VFSCache [" + className + "] ...");
-               ClassLoader cl = VFSCacheFactory.class.getClassLoader();
-               Class<?> clazz = cl.loadClass(className);
-               VFSCache cache = VFSCache.class.cast(clazz.newInstance());
-               cache.start(); // start here, so we fall back to default no-op in case start fails
-               return cache;
-            }
-         }
-         catch (Throwable t)
-         {
-            log.warn("Exception instantiating VFS cache: " + t);
-         }
-         return new NoopVFSCache();
-      }
-   }
-
-   /**
-    * Noop cache.
-    * Doesn't do any caching.
-    */
-   private static class NoopVFSCache implements VFSCache
-   {
-      public VirtualFile getFile(URI uri) throws IOException
-      {
-         return VFS.getRoot(uri);
-      }
-
-      public VirtualFile getFile(URL url) throws IOException
-      {
-         return VFS.getRoot(url);
-      }
-
-      public void putContext(VFSContext context)
-      {
-      }
-
-      public void removeContext(VFSContext context)
-      {
-      }
-
-      public void start() throws Exception
-      {
-      }
-
-      public void stop()
-      {
-      }
-
-      public void flush()
-      {
-      }
-   }
-}
\ No newline at end of file

Copied: projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java (from rev 80538, projects/vfs/branches/Branch_2_0/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java)
===================================================================
--- projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java	                        (rev 0)
+++ projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/VFSCacheFactory.java	2008-11-05 01:11:25 UTC (rev 80540)
@@ -0,0 +1,106 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.virtual.spi.cache;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+import org.jboss.logging.Logger;
+import org.jboss.virtual.VFSUtils;
+import org.jboss.virtual.spi.cache.helpers.NoopVFSCache;
+
+/**
+ * Simple vfs cache factory.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class VFSCacheFactory
+{
+   private static final Object lock = new Object();
+   private static Logger log = Logger.getLogger(VFSCacheFactory.class);
+
+   private static VFSCache instance;
+
+   private VFSCacheFactory()
+   {
+   }
+
+   /**
+    * Get VFS cache instance.
+    *
+    * @return the vfs cache instance
+    */
+   public static VFSCache getInstance()
+   {
+      if (instance == null)
+      {
+         synchronized (lock)
+         {
+            if (instance == null)
+               instance = AccessController.doPrivileged(new VFSCacheCreatorAction());
+         }
+      }
+
+      return instance;
+   }
+
+   /**
+    * Set instance.
+    *
+    * This should be used with care.
+    * Better to leave it to getInstance method creation.
+    *
+    * @param cache cache instance to set
+    */
+   public static void setInstance(VFSCache cache)
+   {
+      if (cache != null && instance != null && instance instanceof NoopVFSCache == false)
+         throw new IllegalArgumentException("Instance already set!");
+
+      instance = cache;
+   }
+
+   private static class VFSCacheCreatorAction implements PrivilegedAction<VFSCache>
+   {
+      public VFSCache run()
+      {
+         try
+         {
+            String className = System.getProperty(VFSUtils.VFS_CACHE_KEY);
+            if (className != null)
+            {
+               log.info("Initializing VFSCache [" + className + "] ...");
+               ClassLoader cl = VFSCacheFactory.class.getClassLoader();
+               Class<?> clazz = cl.loadClass(className);
+               VFSCache cache = VFSCache.class.cast(clazz.newInstance());
+               cache.start(); // start here, so we fall back to default no-op in case start fails
+               return cache;
+            }
+         }
+         catch (Throwable t)
+         {
+            log.warn("Exception instantiating VFS cache: " + t);
+         }
+         return new NoopVFSCache();
+      }
+   }
+}
\ No newline at end of file

Copied: projects/vfs/tags/2.0.0.CR3/src/main/java/org/jboss/virtual/spi/cache/helpers (from rev 80538, projects/vfs/branches/Branch_2_0/src/main/java/org/jboss/virtual/spi/cache/helpers)




More information about the jboss-cvs-commits mailing list