o start a little caching component that does nothing special now but we need to build it out after the multiple instance problem is corrected, and we decide on the interactions between the metadata layer, project building, the reactor, and workspaces in IDEs.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@700758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2008-10-01 13:07:26 +00:00
parent 5fb228063a
commit e8bf60f962
1 changed files with 18 additions and 0 deletions

View File

@ -147,6 +147,24 @@ public class DefaultMavenProjectBuilder
return project; return project;
} }
// I want to build this out as a component with history and statistics to help me track down the realm problems. jvz.
class ProjectCache
{
private Map<String, MavenProject> projects = new HashMap<String, MavenProject>();
public MavenProject get( String key )
{
MavenProject p = projects.get( key );
return p;
}
public MavenProject put( String key, MavenProject project )
{
return projects.put( key, project );
}
}
// This is used by the RR plugin // This is used by the RR plugin
public MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubs ) public MavenProject buildFromRepository( Artifact artifact, List remoteArtifactRepositories, ArtifactRepository localRepository, boolean allowStubs )
throws ProjectBuildingException throws ProjectBuildingException