Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MavenBuildTimestamp (0.13 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/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            cal.set(Calendar.HOUR_OF_DAY, 23);
    
            Date secondTestDate = cal.getTime();
    
            SimpleDateFormat format = new SimpleDateFormat(MavenBuildTimestamp.DEFAULT_BUILD_TIMESTAMP_FORMAT);
            format.setTimeZone(MavenBuildTimestamp.DEFAULT_BUILD_TIME_ZONE);
            assertEquals("1976-11-11T00:16:00Z", format.format(firstTestDate));
            assertEquals("1976-11-11T23:16:00Z", format.format(secondTestDate));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  4. 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