o getting rid of unused methods, going to try and get rid of MavenTools all together

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@512757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2007-02-28 13:58:40 +00:00
parent 000eddf83b
commit bf0d8aabd7
1 changed files with 1 additions and 25 deletions

View File

@ -45,30 +45,6 @@ public class DefaultMavenTools
private PlexusContainer container;
// ----------------------------------------------------------------------------
// ArtifactRepository
// ----------------------------------------------------------------------------
public ArtifactRepository createLocalRepository( File directory )
{
String localRepositoryUrl = directory.getAbsolutePath();
if ( !localRepositoryUrl.startsWith( "file:" ) )
{
localRepositoryUrl = "file://" + localRepositoryUrl;
}
return createRepository( "local", localRepositoryUrl );
}
private ArtifactRepository createRepository( String repositoryId,
String repositoryUrl )
{
ArtifactRepository localRepository =
new DefaultArtifactRepository( repositoryId, repositoryUrl, repositoryLayout );
return localRepository;
}
// ----------------------------------------------------------------------------
// Code snagged from ProjectUtils: this will have to be moved somewhere else
// but just trying to collect it all in one place right now.
@ -77,7 +53,6 @@ public class DefaultMavenTools
public List buildArtifactRepositories( List repositories )
throws InvalidRepositoryException
{
List repos = new ArrayList();
for ( Iterator i = repositories.iterator(); i.hasNext(); )
@ -126,6 +101,7 @@ public class DefaultMavenTools
ArtifactRepositoryLayout layout = getRepositoryLayout( repo );
ArtifactRepositoryPolicy snapshots = buildArtifactRepositoryPolicy( repo.getSnapshots() );
ArtifactRepositoryPolicy releases = buildArtifactRepositoryPolicy( repo.getReleases() );
return artifactRepositoryFactory.createArtifactRepository( id, url, layout, snapshots, releases );