o Took the build timestamp formatting stuff out of the public API

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@783777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-06-11 14:10:33 +00:00
parent bf88fd8ada
commit 56d0392994
2 changed files with 12 additions and 11 deletions

View File

@ -54,6 +54,18 @@ import java.util.Properties;
public abstract class AbstractStringBasedModelInterpolator
implements ModelInterpolator
{
/**
* The default format used for build timestamps.
*/
private static final String DEFAULT_BUILD_TIMESTAMP_FORMAT = "yyyyMMdd-HHmm";
/**
* The name of a property that if present in the model's {@code <properties>} section specifies a custom format for
* build timestamps. See {@link java.text.SimpleDateFormat} for details on the format.
*/
private static final String BUILD_TIMESTAMP_FORMAT_PROPERTY = "maven.build.timestamp.format";
private static final List<String> PROJECT_PREFIXES = Arrays.asList( new String[]{ "pom.", "project." } );
private static final Collection<String> TRANSLATED_PATH_EXPRESSIONS;

View File

@ -35,17 +35,6 @@ import java.io.File;
public interface ModelInterpolator
{
/**
* The default format used for build timestamps.
*/
String DEFAULT_BUILD_TIMESTAMP_FORMAT = "yyyyMMdd-HHmm";
/**
* The name of a property that if present in the model's {@code <properties>} section specifies a custom format for
* build timestamps. See {@link java.text.SimpleDateFormat} for details on the format.
*/
String BUILD_TIMESTAMP_FORMAT_PROPERTY = "maven.build.timestamp.format";
/**
* Interpolates expressions in the specified model. Note that implementations are free to either interpolate the
* provided model directly or to create a clone of the model and interpolate the clone. Callers should always use