Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MavenBuildTimestamp (0.12 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/MavenBuildTimestamp.java

         *
         * @deprecated Use {@link #MavenBuildTimestamp(Date, Map)} or extract the format and pass it
         *             to {@link #MavenBuildTimestamp(Date, String)} instead.
         */
        @Deprecated
        public MavenBuildTimestamp(Date time, Properties properties) {
            this(time, properties != null ? properties.getProperty(BUILD_TIMESTAMP_FORMAT_PROPERTY) : null);
        }
    
        public MavenBuildTimestamp(Date time, String timestampFormat) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/MavenBuildTimestampTest.java

            Map<String, String> interpolationProperties = new HashMap<>();
            interpolationProperties.put("maven.build.timestamp.format", "yyyyMMdd'T'HHmm'Z'");
            MavenBuildTimestamp timestamp = new MavenBuildTimestamp(new Date(), interpolationProperties);
            String formattedTimestamp = timestamp.formattedTimestamp();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/BuildTimestampValueSource.java

        }
    
        @Override
        public Object getValue(String expression) {
            if ("build.timestamp".equals(expression) || "maven.build.timestamp".equals(expression)) {
                return new MavenBuildTimestamp(startTime, properties).formattedTimestamp();
            }
            return null;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top