MRM-709: Use commons-io instead of Plexus Utils

* Fixing build error.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@637001 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2008-03-14 05:53:11 +00:00
parent 4c114bee2f
commit cd88ed03c4
1 changed files with 3 additions and 20 deletions

View File

@ -19,6 +19,7 @@ package org.apache.maven.archiva.transaction;
* under the License.
*/
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.codehaus.plexus.PlexusTestCase;
import org.codehaus.plexus.digest.Digester;
@ -81,30 +82,12 @@ public abstract class AbstractFileEventTest
protected String readFile( File file )
throws IOException
{
FileInputStream in = null;
try
{
in = new FileInputStream( file );
return IOUtils.toString( in );
}
finally
{
IOUtil.close( in );
}
return FileUtils.readFileToString( file );
}
protected void writeFile( File file, String content )
throws IOException
{
FileOutputStream out = null;
try
{
out = new FileOutputStream( file );
IOUtil.copy( content, out );
}
finally
{
IOUtil.close( out );
}
FileUtils.writeStringToFile( file, content );
}
}