[jboss-cvs] JBossAS SVN: r72428 - projects/vfs/trunk/src/main/java/org/jboss/virtual.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 18 05:11:37 EDT 2008
Author: alesj
Date: 2008-04-18 05:11:37 -0400 (Fri, 18 Apr 2008)
New Revision: 72428
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/VFSUtils.java
Log:
Remove move and unpackRecursively.
Unpack is already recursive, move doesn't make sense.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/VFSUtils.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/VFSUtils.java 2008-04-18 09:09:44 UTC (rev 72427)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/VFSUtils.java 2008-04-18 09:11:37 UTC (rev 72428)
@@ -501,39 +501,9 @@
return file;
}
- return move(file);
- }
-
- /**
- * Unpack recursively the artifact under file param.
- *
- * @param file the file to unpack recursively
- * @return unpacked file
- * @throws IOException for any io error
- * @throws URISyntaxException for any uri error
- */
- public static VirtualFile unpackRecursively(VirtualFile file) throws IOException, URISyntaxException
- {
- throw new UnsupportedOperationException("Recursive unpack is not yet supported: " + file);
- }
-
- /**
- * Move the artifact under file param.
- *
- * @param file the file to move
- * @return moved file
- * @throws IOException for any io error
- * @throws URISyntaxException for any uri error
- */
- public static VirtualFile move(VirtualFile file) throws IOException, URISyntaxException
- {
- if (file == null)
- throw new IllegalArgumentException("Null file");
-
File guidDir = createTempDirectory(getTempDirectory(), GUID.asString());
File unpacked = createTempDirectory(guidDir, file.getName());
- VirtualFileHandler handler = file.getHandler();
unpack(handler, unpacked, false);
FileSystemContext fileSystemContext = new FileSystemContext(unpacked);
VirtualFileHandler newHandler = fileSystemContext.getRoot();
@@ -582,7 +552,7 @@
{
File next = new File(file, handler.getName());
if (handler.isLeaf() == false && next.mkdir() == false)
- throw new IllegalArgumentException("Problems creating new file: " + next);
+ throw new IllegalArgumentException("Problems creating new directory: " + next);
next.deleteOnExit();
unpack(handler, next, handler.isLeaf());
More information about the jboss-cvs-commits
mailing list