import org.apache.maven.archiva.reporting.database.ReportingDatabase;
import org.codehaus.plexus.digest.Digester;
import org.codehaus.plexus.digest.DigesterException;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
{
try
{
- digester.verify( file, FileUtils.fileRead( checksumFile ) );
+ digester.verify( file, FileUtils.readFileToString( checksumFile, null ) );
}
catch ( DigesterException e )
{
import org.apache.maven.archiva.reporting.database.ReportingDatabase;
import org.codehaus.plexus.digest.Digester;
import org.codehaus.plexus.digest.DigesterException;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
{
try
{
- digester.verify( file, FileUtils.fileRead( checksumFile ) );
+ digester.verify( file, FileUtils.readFileToString( checksumFile, null ) );
}
catch ( DigesterException e )
{
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.factory.ArtifactFactory;
import org.apache.maven.model.Model;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.commons.io.FileUtils;
import java.io.File;
import java.util.Collections;
import org.apache.maven.archiva.reporting.AbstractRepositoryReportsTestCase;
import org.apache.maven.archiva.reporting.database.ReportingDatabase;
import org.apache.maven.artifact.Artifact;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.commons.io.FileUtils;
import java.io.File;
import java.text.SimpleDateFormat;
dir.mkdirs();
String date = new SimpleDateFormat( "yyyyMMdd.HHmmss" ).format( new Date() );
- FileUtils.fileWrite( new File( dir, "artifactId-1.0-alpha-1-" + date + "-1.jar" ).getAbsolutePath(), "foo" );
+ FileUtils.writeStringToFile( new File( dir, "artifactId-1.0-alpha-1-" + date + "-1.jar" ), "foo", null );
Artifact artifact =
createArtifactFromRepository( repository, "groupId", "artifactId", "1.0-alpha-1-" + date + "-1" );
String date = new SimpleDateFormat( "yyyyMMdd.HHmmss" ).format( new Date() );
for ( int i = 1; i <= 5; i++ )
{
- FileUtils.fileWrite( new File( dir, "artifactId-1.0-alpha-1-" + date + "-" + i + ".jar" ).getAbsolutePath(),
- "foo" );
+ FileUtils.writeStringToFile( new File( dir, "artifactId-1.0-alpha-1-" + date + "-" + i + ".jar" ),
+ "foo", null );
}
for ( int i = 1; i <= 5; i++ )
import org.codehaus.plexus.digest.Digester;
import org.codehaus.plexus.digest.DigesterException;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.maven.archiva.reporting.AbstractRepositoryReportsTestCase;