From ff7c2e5502518afead822298b6046e875970cc9a Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Sun, 24 Feb 2008 05:21:35 +0000 Subject: [PATCH] MRM-709: Use commons-io instead of Plexus Utils * Using FileUtils from commons-io git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@630593 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/archiva/policies/ChecksumPolicyTest.java | 2 +- .../org/apache/maven/archiva/policies/ReleasePolicyTest.java | 4 ++-- .../apache/maven/archiva/policies/SnapshotsPolicyTest.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java index a1d83d36f..335a7a72e 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ChecksumPolicyTest.java @@ -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; diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java index 3ede659be..747241ca2 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/ReleasePolicyTest.java @@ -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 ); } diff --git a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java index 0879a7ea8..c57381a44 100644 --- a/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java +++ b/archiva-base/archiva-policies/src/test/java/org/apache/maven/archiva/policies/SnapshotsPolicyTest.java @@ -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 ); } -- 2.39.5