move injectors to a package

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-02-23 01:59:34 +00:00
parent b005ece7c4
commit ec94b8fe2e
6 changed files with 14 additions and 11 deletions

View File

@ -31,6 +31,7 @@ import org.apache.maven.model.Model;
import org.apache.maven.model.Parent; import org.apache.maven.model.Parent;
import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.apache.maven.project.inheritance.ModelInheritanceAssembler; import org.apache.maven.project.inheritance.ModelInheritanceAssembler;
import org.apache.maven.project.injection.ProjectDefaultsInjector;
import org.apache.maven.project.interpolation.ProjectInterpolator; import org.apache.maven.project.interpolation.ProjectInterpolator;
import org.apache.maven.project.path.PathTranslator; import org.apache.maven.project.path.PathTranslator;
import org.apache.maven.project.validation.ModelValidationResult; import org.apache.maven.project.validation.ModelValidationResult;

View File

@ -17,7 +17,6 @@ package org.apache.maven.project;
* ==================================================================== * ====================================================================
*/ */
import org.apache.maven.artifact.Artifact;
import org.apache.maven.model.Build; import org.apache.maven.model.Build;
import org.apache.maven.model.CiManagement; import org.apache.maven.model.CiManagement;
import org.apache.maven.model.Contributor; import org.apache.maven.model.Contributor;
@ -34,7 +33,6 @@ import org.codehaus.plexus.util.StringUtils;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
@ -203,6 +201,7 @@ public class MavenProject
return list; return list;
} }
/* TODO: remove - should be using a type handler
public String[] getClasspathElements() public String[] getClasspathElements()
{ {
int size = getArtifacts().size(); int size = getArtifacts().size();
@ -238,6 +237,7 @@ public class MavenProject
return false; return false;
} }
*/
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Delegate to the model // Delegate to the model
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
package org.apache.maven.project; package org.apache.maven.project.injection;
/* /*
* Copyright 2001-2005 The Apache Software Foundation. * Copyright 2001-2005 The Apache Software Foundation.
@ -18,6 +18,7 @@ package org.apache.maven.project;
import org.apache.maven.model.Dependency; import org.apache.maven.model.Dependency;
import org.apache.maven.model.DependencyManagement; import org.apache.maven.model.DependencyManagement;
import org.apache.maven.project.MavenProject;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
@ -29,7 +30,7 @@ import java.util.TreeMap;
* @author jdcasey Created on Feb 1, 2005 * @author jdcasey Created on Feb 1, 2005
*/ */
public class DefaultProjectDefaultsInjector public class DefaultProjectDefaultsInjector
implements ProjectDefaultsInjector implements ProjectDefaultsInjector
{ {
public void injectDefaults( MavenProject project ) public void injectDefaults( MavenProject project )

View File

@ -1,4 +1,4 @@
package org.apache.maven.project; package org.apache.maven.project.injection;
/* /*
* Copyright 2001-2005 The Apache Software Foundation. * Copyright 2001-2005 The Apache Software Foundation.
@ -16,7 +16,7 @@ package org.apache.maven.project;
* limitations under the License. * limitations under the License.
*/ */
/** import org.apache.maven.project.MavenProject; /**
* @author jdcasey Created on Feb 1, 2005 * @author jdcasey Created on Feb 1, 2005
*/ */
public interface ProjectDefaultsInjector public interface ProjectDefaultsInjector

View File

@ -86,8 +86,8 @@
| |
--> -->
<component> <component>
<role>org.apache.maven.project.ProjectDefaultsInjector</role> <role>org.apache.maven.project.injection.ProjectDefaultsInjector</role>
<implementation>org.apache.maven.project.DefaultProjectDefaultsInjector</implementation> <implementation>org.apache.maven.project.injection.DefaultProjectDefaultsInjector</implementation>
</component> </component>
<!-- <!--
| |
@ -99,7 +99,7 @@
<implementation>org.apache.maven.project.DefaultMavenProjectBuilder</implementation> <implementation>org.apache.maven.project.DefaultMavenProjectBuilder</implementation>
<requirements> <requirements>
<requirement> <requirement>
<role>org.apache.maven.project.ProjectDefaultsInjector</role> <role>org.apache.maven.project.injection.ProjectDefaultsInjector</role>
</requirement> </requirement>
<requirement> <requirement>
<role>org.apache.maven.project.interpolation.ProjectInterpolator</role> <role>org.apache.maven.project.interpolation.ProjectInterpolator</role>
@ -255,12 +255,12 @@
<!-- 14 --> <!-- 14 -->
<phase> <phase>
<id>install</id> <id>install</id>
<goal>install:install</goal> <goal>jar:install</goal>
</phase> </phase>
<!-- 15 --> <!-- 15 -->
<phase> <phase>
<id>deploy</id> <id>deploy</id>
<goal>deploy:deploy</goal> <goal>jar:deploy</goal>
</phase> </phase>
</phases> </phases>
<!-- END SNIPPET: lifecycle --> <!-- END SNIPPET: lifecycle -->

View File

@ -20,6 +20,7 @@ import junit.framework.TestCase;
import org.apache.maven.model.Dependency; import org.apache.maven.model.Dependency;
import org.apache.maven.model.DependencyManagement; import org.apache.maven.model.DependencyManagement;
import org.apache.maven.model.Model; import org.apache.maven.model.Model;
import org.apache.maven.project.injection.DefaultProjectDefaultsInjector;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;