You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/06/11 16:10:33 UTC
svn commit: r783777 - in
/maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation:
AbstractStringBasedModelInterpolator.java ModelInterpolator.java
Author: bentmann
Date: Thu Jun 11 14:10:33 2009
New Revision: 783777
URL: http://svn.apache.org/viewvc?rev=783777&view=rev
Log:
o Took the build timestamp formatting stuff out of the public API
Modified:
maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelInterpolator.java
Modified: maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java?rev=783777&r1=783776&r2=783777&view=diff
==============================================================================
--- maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java (original)
+++ maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/AbstractStringBasedModelInterpolator.java Thu Jun 11 14:10:33 2009
@@ -54,6 +54,18 @@
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;
Modified: maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelInterpolator.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelInterpolator.java?rev=783777&r1=783776&r2=783777&view=diff
==============================================================================
--- maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelInterpolator.java (original)
+++ maven/components/trunk/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/ModelInterpolator.java Thu Jun 11 14:10:33 2009
@@ -36,17 +36,6 @@
{
/**
- * 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
* the returned model and must not rely on the input model being updated.