]> source.dussan.org Git - archiva.git/commitdiff
MRM-709: Use commons-io instead of Plexus Utils
authorJoakim Erdfelt <joakime@apache.org>
Sun, 24 Feb 2008 05:21:35 +0000 (05:21 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Sun, 24 Feb 2008 05:21:35 +0000 (05:21 +0000)
* Using FileUtils from commons-io

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630593 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java
archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java
archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java

index a1d83d36f71350c04cadadee229b5f68d1c203df..335a7a72e94a8a8cfa279ad9255d7abd183364d1 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies;
  * under the License.
  */
 
+import org.apache.commons.io.FileUtils;
 import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.util.FileUtils;
 
 import java.io.BufferedReader;
 import java.io.File;
index 3ede659be9c87492be2a908786849b862337ba89..747241ca26db67520cdb9ae2d6afdd245dc7671a 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies;
  * under the License.
  */
 
+import org.apache.commons.io.FileUtils;
 import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
 import java.util.Properties;
@@ -306,7 +306,7 @@ public class ReleasePolicyTest
         if ( createLocalFile )
         {
             localFile.getParentFile().mkdirs();
-            FileUtils.fileWrite( localFile.getAbsolutePath(), "random-junk" );
+            FileUtils.writeStringToFile( localFile, "random-junk" );
             localFile.setLastModified( localFile.lastModified() - generatedLocalFileUpdateDelta );
         }
 
index 0879a7ea8705c0ac3c7539472af0852644676131..c57381a44910f4c68abdf527a2a4e080650d90d8 100644 (file)
@@ -19,8 +19,8 @@ package org.apache.maven.archiva.policies;
  * under the License.
  */
 
+import org.apache.commons.io.FileUtils;
 import org.codehaus.plexus.PlexusTestCase;
-import org.codehaus.plexus.util.FileUtils;
 
 import java.io.File;
 import java.util.Properties;
@@ -306,7 +306,7 @@ public class SnapshotsPolicyTest
         if ( createLocalFile )
         {
             localFile.getParentFile().mkdirs();
-            FileUtils.fileWrite( localFile.getAbsolutePath(), "random-junk" );
+            FileUtils.writeStringToFile( localFile, "random-junk" );
             localFile.setLastModified( localFile.lastModified() - generatedLocalFileUpdateDelta );
         }