Updating to use IO FileUtils rather than Plexus FileUtils. This project doesn't build however - there are imports missing.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@484866 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2006-12-09 00:50:06 +00:00
parent 12cef35e36
commit 1e1c940df6
1 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ import org.apache.maven.artifact.resolver.filter.AndArtifactFilter;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
import org.codehaus.plexus.logging.AbstractLogEnabled;
import org.codehaus.plexus.util.FileUtils;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.File;
@ -160,7 +160,7 @@ public class DefaultRepositoryAssembler
// the assembly we previously populated.
FileUtils.deleteDirectory( repositoryDirectory );
FileUtils.mkdir( repositoryDirectory.getAbsolutePath() );
repositoryDirectory.mkdirs();
for ( Iterator i = result.getArtifacts().iterator(); i.hasNext(); )
{
@ -304,10 +304,10 @@ public class DefaultRepositoryAssembler
String md5 = DigestUtils.createChecksum( file, "MD5" );
String sha1 = DigestUtils.createChecksum( file, "SHA-1" );
FileUtils.fileWrite( new File( file.getParentFile(), file.getName() + ".md5" ).getAbsolutePath(), md5
.toLowerCase() );
FileUtils.fileWrite( new File( file.getParentFile(), file.getName() + ".sha1" ).getAbsolutePath(), sha1
.toLowerCase() );
FileUtils.writeStringToFile( new File( file.getParentFile(), file.getName() + ".md5" ),
md5.toLowerCase(), null );
FileUtils.writeStringToFile( new File( file.getParentFile(), file.getName() + ".sha1" ),
sha1.toLowerCase(), null );
}
catch ( NoSuchAlgorithmException e )
{