Java 类org.apache.maven.project.path.PathTranslator 实例源码

项目:intellij-ce-playground    文件:Maven30ServerEmbedderImpl.java   
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException {
  Model result = MavenModelConverter.toNativeModel(model);
  result = doInterpolate(result, basedir);

  PathTranslator pathTranslator = new DefaultPathTranslator();
  pathTranslator.alignToBaseDirectory(result, basedir);

  return MavenModelConverter.convertModel(result, null);
}
项目:intellij-ce-playground    文件:Maven2ServerEmbedderImpl.java   
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException {
  Model result = Maven2ModelConverter.toNativeModel(model);
  result = doInterpolate(result, basedir);

  PathTranslator pathTranslator = new DefaultPathTranslator();
  pathTranslator.alignToBaseDirectory(result, basedir);

  return Maven2ModelConverter.convertModel(result, null);
}
项目:intellij-ce-playground    文件:Maven32ServerEmbedderImpl.java   
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException {
  Model result = MavenModelConverter.toNativeModel(model);
  result = doInterpolate(result, basedir);

  PathTranslator pathTranslator = new DefaultPathTranslator();
  pathTranslator.alignToBaseDirectory(result, basedir);

  return MavenModelConverter.convertModel(result, null);
}
项目:tools-idea    文件:Maven3ServerEmbedderImpl.java   
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException {
  Model result = MavenModelConverter.toNativeModel(model);
  result = doInterpolate(result, basedir);

  PathTranslator pathTranslator = new DefaultPathTranslator();
  pathTranslator.alignToBaseDirectory(result, basedir);

  return MavenModelConverter.convertModel(result, null);
}
项目:tools-idea    文件:Maven2ServerEmbedderImpl.java   
public static MavenModel interpolateAndAlignModel(MavenModel model, File basedir) throws RemoteException {
  Model result = Maven2ModelConverter.toNativeModel(model);
  result = doInterpolate(result, basedir);

  PathTranslator pathTranslator = new DefaultPathTranslator();
  pathTranslator.alignToBaseDirectory(result, basedir);

  return Maven2ModelConverter.convertModel(result, null);
}
项目:oceano    文件:PathTranslatingPostProcessor.java   
public PathTranslatingPostProcessor( List<String> expressionPrefixes, List<String> unprefixedPathKeys,
                                     File projectDir, PathTranslator pathTranslator )
{
    this.expressionPrefixes = expressionPrefixes;
    this.unprefixedPathKeys = unprefixedPathKeys;
    this.projectDir = projectDir;
    this.pathTranslator = pathTranslator;
}
项目:oceano    文件:PluginParameterExpressionEvaluator.java   
@Deprecated //TODO: used by the Enforcer plugin
public PluginParameterExpressionEvaluator( MavenSession session, MojoExecution mojoExecution,
                                           PathTranslator pathTranslator, Logger logger, MavenProject project,
                                           Properties properties )
{
    this( session, mojoExecution );
}
项目:versions-maven-plugin    文件:DefaultVersionsHelper.java   
/**
 * Constructs a new {@link DefaultVersionsHelper}.
 *
 * @param artifactFactory The artifact factory.
 * @param artifactResolver
 * @param artifactMetadataSource The artifact metadata source to use.
 * @param remoteArtifactRepositories The remote artifact repositories to consult.
 * @param remotePluginRepositories The remote plugin repositories to consult.
 * @param localRepository The local repository to consult.
 * @param wagonManager The wagon manager (used if rules need to be retrieved).
 * @param settings The settings (used to provide proxy information to the wagon manager).
 * @param serverId The serverId hint for the wagon manager.
 * @param rulesUri The URL to retrieve the versioning rules from.
 * @param log The {@link org.apache.maven.plugin.logging.Log} to send log messages to.
 * @param mavenSession The maven session information.
 * @param pathTranslator The path translator component. @throws org.apache.maven.plugin.MojoExecutionException If
 *            things go wrong.
 * @since 1.0-alpha-3
 */
public DefaultVersionsHelper( ArtifactFactory artifactFactory, ArtifactResolver artifactResolver,
                              ArtifactMetadataSource artifactMetadataSource, List remoteArtifactRepositories,
                              List remotePluginRepositories, ArtifactRepository localRepository,
                              WagonManager wagonManager, Settings settings, String serverId, String rulesUri,
                              Log log, MavenSession mavenSession, PathTranslator pathTranslator )
    throws MojoExecutionException
{
    this.artifactFactory = artifactFactory;
    this.artifactResolver = artifactResolver;
    this.mavenSession = mavenSession;
    this.pathTranslator = pathTranslator;
    this.ruleSet = loadRuleSet( serverId, settings, wagonManager, rulesUri, log );
    this.artifactMetadataSource = artifactMetadataSource;
    this.localRepository = localRepository;
    this.remoteArtifactRepositories = remoteArtifactRepositories;
    this.remotePluginRepositories = remotePluginRepositories;
    this.log = log;
}
项目:versions-maven-plugin    文件:VersionsExpressionEvaluator.java   
public VersionsExpressionEvaluator( MavenSession mavenSession, PathTranslator pathTranslator,
                                    MavenProject mavenProject )
{
    super( mavenSession, new MojoExecution( new MojoDescriptor() ), pathTranslator, null, mavenProject,
           mavenSession.getExecutionProperties() );
}
项目:versions-maven-plugin-svn-clone    文件:DefaultVersionsHelper.java   
/**
 * Constructs a new {@link DefaultVersionsHelper}.
 *
 * @param artifactFactory            The artifact factory.
 * @param artifactResolver
 * @param artifactMetadataSource     The artifact metadata source to use.
 * @param remoteArtifactRepositories The remote artifact repositories to consult.
 * @param remotePluginRepositories   The remote plugin repositories to consult.
 * @param localRepository            The local repository to consult.
 * @param wagonManager               The wagon manager (used if rules need to be retrieved).
 * @param settings                   The settings  (used to provide proxy information to the wagon manager).
 * @param serverId                   The serverId hint for the wagon manager.
 * @param rulesUri                   The URL to retrieve the versioning rules from.
 * @param log                        The {@link org.apache.maven.plugin.logging.Log} to send log messages to.
 * @param mavenSession               The maven session information.
 * @param pathTranslator             The path translator component.            @throws org.apache.maven.plugin.MojoExecutionException
 *                                   If things go wrong.
 * @since 1.0-alpha-3
 */
public DefaultVersionsHelper( ArtifactFactory artifactFactory, ArtifactResolver artifactResolver,
                              ArtifactMetadataSource artifactMetadataSource, List remoteArtifactRepositories,
                              List remotePluginRepositories, ArtifactRepository localRepository,
                              WagonManager wagonManager, Settings settings, String serverId, String rulesUri,
                              Log log, MavenSession mavenSession, PathTranslator pathTranslator )
    throws MojoExecutionException
{
    this.artifactFactory = artifactFactory;
    this.artifactResolver = artifactResolver;
    this.mavenSession = mavenSession;
    this.pathTranslator = pathTranslator;
    this.ruleSet = loadRuleSet( serverId, settings, wagonManager, rulesUri, log );
    this.artifactMetadataSource = artifactMetadataSource;
    this.localRepository = localRepository;
    this.remoteArtifactRepositories = remoteArtifactRepositories;
    this.remotePluginRepositories = remotePluginRepositories;
    this.log = log;
}
项目:versions-maven-plugin-svn-clone    文件:VersionsExpressionEvaluator.java   
public VersionsExpressionEvaluator( MavenSession mavenSession, PathTranslator pathTranslator,
                                    MavenProject mavenProject )
{
    super( mavenSession, new MojoExecution( new MojoDescriptor() ), pathTranslator, null, mavenProject,
           mavenSession.getExecutionProperties() );
}
项目:oceano    文件:AbstractStringBasedModelInterpolator.java   
protected AbstractStringBasedModelInterpolator( PathTranslator pathTranslator )
{
    this.pathTranslator = pathTranslator;
}
项目:oceano    文件:StringSearchModelInterpolator.java   
public StringSearchModelInterpolator( PathTranslator pathTranslator )
{
    super( pathTranslator );
}
项目:oceano    文件:RegexBasedModelInterpolator.java   
public RegexBasedModelInterpolator( PathTranslator pathTranslator )
{
    super( pathTranslator );
}