Moved interpolator classes into their own package.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@766088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-04-17 17:16:55 +00:00
parent fa462e6893
commit 635a30a36f
17 changed files with 31 additions and 35 deletions

View File

@ -60,6 +60,10 @@ import org.apache.maven.model.Dependency;
import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.ReportPlugin;
import org.apache.maven.model.interpolator.DefaultInterpolator;
import org.apache.maven.model.interpolator.Interpolator;
import org.apache.maven.model.interpolator.InterpolatorProperty;
import org.apache.maven.model.interpolator.PomInterpolatorTag;
import org.apache.maven.monitor.event.EventDispatcher;
import org.apache.maven.monitor.event.MavenEvents;
import org.apache.maven.monitor.logging.DefaultLog;
@ -72,10 +76,6 @@ import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectBuilder;
import org.apache.maven.project.ProjectBuildingException;
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.apache.maven.project.builder.DefaultInterpolator;
import org.apache.maven.project.builder.Interpolator;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.project.builder.PomInterpolatorTag;
import org.apache.maven.project.path.PathTranslator;
import org.apache.maven.realm.MavenRealmManager;
import org.apache.maven.realm.RealmManagementException;

View File

@ -29,10 +29,10 @@ import org.apache.maven.mercury.builder.api.DependencyProcessor;
import org.apache.maven.mercury.builder.api.DependencyProcessorException;
import org.apache.maven.mercury.builder.api.MetadataReader;
import org.apache.maven.mercury.builder.api.MetadataReaderException;
import org.apache.maven.project.builder.DefaultInterpolator;
import org.apache.maven.model.interpolator.DefaultInterpolator;
import org.apache.maven.model.interpolator.InterpolatorProperty;
import org.apache.maven.model.interpolator.PomInterpolatorTag;
import org.apache.maven.project.builder.DomainModel;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.project.builder.PomInterpolatorTag;
import org.apache.maven.project.builder.ProcessorContext;
import org.codehaus.plexus.component.annotations.Component;

View File

@ -1,4 +1,4 @@
package org.apache.maven.project.builder;
package org.apache.maven.model.interpolator;
import java.io.ByteArrayInputStream;
import java.io.File;
@ -25,6 +25,8 @@ import org.apache.maven.model.Build;
import org.apache.maven.model.Model;
import org.apache.maven.model.Reporting;
import org.apache.maven.model.Resource;
import org.apache.maven.project.builder.PomClassicDomainModel;
import org.apache.maven.project.builder.ProjectUri;
import org.codehaus.plexus.component.annotations.Component;
@Component(role=Interpolator.class)

View File

@ -1,8 +1,10 @@
package org.apache.maven.project.builder;
package org.apache.maven.model.interpolator;
import java.io.IOException;
import java.util.List;
import org.apache.maven.project.builder.PomClassicDomainModel;
public interface Interpolator
{

View File

@ -1,4 +1,4 @@
package org.apache.maven.project.builder;
package org.apache.maven.model.interpolator;
import java.util.*;

View File

@ -1,4 +1,4 @@
package org.apache.maven.project.builder;
package org.apache.maven.model.interpolator;
/*
* Licensed to the Apache Software Foundation (ASF) under one
@ -24,10 +24,11 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Maps a URI to a string value, which may be null. This class is immutable.
*/
public final class ModelProperty
final class ModelProperty
{
/**

View File

@ -1,4 +1,4 @@
package org.apache.maven.project.builder;
package org.apache.maven.model.interpolator;
public enum PomInterpolatorTag

View File

@ -22,6 +22,8 @@ package org.apache.maven.profiles;
import org.apache.maven.model.Activation;
import org.apache.maven.model.Model;
import org.apache.maven.model.Profile;
import org.apache.maven.model.interpolator.InterpolatorProperty;
import org.apache.maven.model.interpolator.PomInterpolatorTag;
import org.apache.maven.profiles.ProfileActivationContext;
import org.apache.maven.profiles.ProfileActivationException;
import org.apache.maven.profiles.ProfileManager;
@ -30,8 +32,6 @@ import org.apache.maven.profiles.matchers.FileMatcher;
import org.apache.maven.profiles.matchers.JdkMatcher;
import org.apache.maven.profiles.matchers.ProfileMatcher;
import org.apache.maven.profiles.matchers.PropertyMatcher;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.project.builder.PomInterpolatorTag;
import java.util.ArrayList;
import java.util.Arrays;

View File

@ -4,7 +4,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public class ProfileManagerInfo
{

View File

@ -22,7 +22,7 @@ package org.apache.maven.profiles.matchers;
import java.util.List;
import org.apache.maven.model.Profile;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public class DefaultMatcher implements ProfileMatcher
{

View File

@ -5,7 +5,7 @@ import java.util.List;
import org.apache.maven.model.ActivationFile;
import org.apache.maven.model.Profile;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public class FileMatcher implements ProfileMatcher {

View File

@ -5,7 +5,7 @@ import java.util.Arrays;
import java.util.List;
import org.apache.maven.model.Profile;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public class JdkMatcher
implements ProfileMatcher

View File

@ -21,8 +21,8 @@ package org.apache.maven.profiles.matchers;
import java.util.List;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.Profile;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public interface ProfileMatcher
{

View File

@ -22,7 +22,7 @@ package org.apache.maven.profiles.matchers;
import java.util.List;
import org.apache.maven.model.Profile;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
public class PropertyMatcher implements ProfileMatcher
{

View File

@ -38,19 +38,19 @@ import org.apache.maven.artifact.resolver.ResolutionErrorHandler;
import org.apache.maven.model.Build;
import org.apache.maven.model.Model;
import org.apache.maven.model.Profile;
import org.apache.maven.model.interpolator.DefaultInterpolator;
import org.apache.maven.model.interpolator.Interpolator;
import org.apache.maven.model.interpolator.InterpolatorProperty;
import org.apache.maven.model.interpolator.PomInterpolatorTag;
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.apache.maven.profiles.DefaultProfileManager;
import org.apache.maven.profiles.ProfileActivationException;
import org.apache.maven.profiles.ProfileManagerInfo;
import org.apache.maven.profiles.ProfileManager;
import org.apache.maven.project.artifact.InvalidDependencyVersionException;
import org.apache.maven.project.builder.DefaultInterpolator;
import org.apache.maven.project.builder.DomainModel;
import org.apache.maven.project.builder.Interpolator;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.project.builder.ModelEventListener;
import org.apache.maven.project.builder.PomClassicDomainModel;
import org.apache.maven.project.builder.PomInterpolatorTag;
import org.apache.maven.project.builder.ProcessorContext;
import org.apache.maven.project.validation.ModelValidationResult;
import org.apache.maven.project.validation.ModelValidator;

View File

@ -4,7 +4,7 @@ import java.util.Collections;
import org.apache.maven.model.Activation;
import org.apache.maven.model.Profile;
import org.apache.maven.project.builder.InterpolatorProperty;
import org.apache.maven.model.interpolator.InterpolatorProperty;
import junit.framework.TestCase;

View File

@ -20,22 +20,13 @@ package org.apache.maven.project.harness;
*/
import java.io.*;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.jxpath.JXPathContext;
import org.apache.commons.jxpath.JXPathNotFoundException;
import org.apache.commons.jxpath.ri.JXPathContextReferenceImpl;
import org.apache.maven.model.Model;
import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.apache.maven.project.builder.ModelProperty;
import org.apache.maven.project.builder.PomClassicDomainModel;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.WriterFactory;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
public class PomTestWrapper
{