org.apache.maven.model.path
Class DefaultModelPathTranslator

java.lang.Object
  extended by org.apache.maven.model.path.DefaultModelPathTranslator
All Implemented Interfaces:
ModelPathTranslator

@Component(role=ModelPathTranslator.class)
public class DefaultModelPathTranslator
extends Object
implements ModelPathTranslator

Resolves relative paths within a model against a specific base directory.

Author:
Benjamin Bentmann

Constructor Summary
DefaultModelPathTranslator()
           
 
Method Summary
 void alignToBaseDirectory(Model model, File basedir, ModelBuildingRequest request)
          Resolves the well-known paths of the specified model against the given base directory.
 DefaultModelPathTranslator setPathTranslator(PathTranslator pathTranslator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelPathTranslator

public DefaultModelPathTranslator()
Method Detail

setPathTranslator

public DefaultModelPathTranslator setPathTranslator(PathTranslator pathTranslator)

alignToBaseDirectory

public void alignToBaseDirectory(Model model,
                                 File basedir,
                                 ModelBuildingRequest request)
Description copied from interface: ModelPathTranslator
Resolves the well-known paths of the specified model against the given base directory. Paths within plugin configuration are not processed.

Specified by:
alignToBaseDirectory in interface ModelPathTranslator
Parameters:
model - The model whose paths should be resolved, may be null.
basedir - The base directory to resolve relative paths against, may be null.
request - The model building request that holds further settings, must not be null.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.