Author: stephenc Date: Wed Jun 15 23:20:58 2011 New Revision: 1136245 URL: http://svn.apache.org/viewvc?rev=1136245&view=rev Log: fix up some of the impl
Modified: maven/sandbox/trunk/plexus-utils-commons-bridge/plexus-utils-commons-bridge/src/main/java/org/codehaus/plexus/util/FileUtils.java Modified: maven/sandbox/trunk/plexus-utils-commons-bridge/plexus-utils-commons-bridge/src/main/java/org/codehaus/plexus/util/FileUtils.java URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/plexus-utils-commons-bridge/plexus-utils-commons-bridge/src/main/java/org/codehaus/plexus/util/FileUtils.java?rev=1136245&r1=1136244&r2=1136245&view=diff ============================================================================== --- maven/sandbox/trunk/plexus-utils-commons-bridge/plexus-utils-commons-bridge/src/main/java/org/codehaus/plexus/util/FileUtils.java (original) +++ maven/sandbox/trunk/plexus-utils-commons-bridge/plexus-utils-commons-bridge/src/main/java/org/codehaus/plexus/util/FileUtils.java Wed Jun 15 23:20:58 2011 @@ -214,7 +214,7 @@ public class FileUtils public static void fileDelete( String file ) { - throw new UnsupportedOperationException( "TODO: Implement" ); + org.apache.commons.io.FileUtils.deleteQuietly( new File( file ) ); } public static boolean waitFor( String file, int duration ) @@ -229,7 +229,7 @@ public class FileUtils public static File getFile( String file ) { - throw new UnsupportedOperationException( "TODO: Implement" ); + return new File( file ); } public static String[] getFilesFromExtension( String file, String[] extensions ) @@ -292,7 +292,7 @@ public class FileUtils public static void copyFileToDirectory( String sourceFile, String destDir ) throws IOException { - throw new UnsupportedOperationException( "TODO: Implement" ); + org.apache.commons.io.FileUtils.copyFileToDirectory( new File( sourceFile ), new File( destDir ) ); } public static void copyFileToDirectoryIfModified( String sourceFile, String destDir )