Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for setTimestamp (0.16 sec)

  1. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

        @Test
        void mergeSnapshotWithEmptyList() throws Exception {
            Snapshot snapshot = new Snapshot();
            snapshot.setBuildNumber(3);
            snapshot.setTimestamp("20200710.072412");
            target.getVersioning().setSnapshot(snapshot);
            target.getVersioning().setLastUpdated("20200921071745");
            SnapshotVersion sv = new SnapshotVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

                snapshot = new Snapshot();
                snapshot.setBuildNumber(buildNumber != null ? buildNumber : getBuildNumber(recessive) + 1);
                snapshot.setTimestamp(utcDateFormatter.format(timestamp));
    
                Versioning versioning = new Versioning();
                versioning.setSnapshot(snapshot);
                versioning.setLastUpdatedTimestamp(timestamp);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java

            String version = null;
            Snapshot snapshot = versioning.getSnapshot();
            if (snapshot != null) {
                if (snapshot.getTimestamp() != null && snapshot.getBuildNumber() > 0) {
                    String newVersion = snapshot.getTimestamp() + "-" + snapshot.getBuildNumber();
                    version = baseVersion.replace(Artifact.SNAPSHOT_VERSION, newVersion);
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. api/maven-api-metadata/src/main/mdo/metadata.mdo

                        }
    
                        // overwrite
                        if ( s.getTimestamp() == null ? snapshot.getTimestamp() != null
                            : !s.getTimestamp().equals( snapshot.getTimestamp() ) )
                        {
                            s.setTimestamp( snapshot.getTimestamp() );
                            changed = true;
                            updateSnapshotVersions = true;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed May 15 17:32:27 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher(artifact.getVersion());
                    if (matcher.matches()) {
                        Snapshot snapshot = new Snapshot();
                        snapshot.setTimestamp(matcher.group(2));
                        try {
                            snapshot.setBuildNumber(Integer.parseInt(matcher.group(3)));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/DictionaryManager.java

        }
    
        public void store(final DictionaryFile<? extends DictionaryItem> dictFile, final File file) {
            getDictionaryFile(dictFile.getId()).ifPresent(currentFile -> {
                if (currentFile.getTimestamp().getTime() > dictFile.getTimestamp().getTime()) {
                    throw new DictionaryException(dictFile.getPath() + " was updated.");
                }
    
                // TODO use stream
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/ApiAdminDictAction.java

            final ListBody body = new ListBody();
            body.id = dictionaryFile.getId();
            body.type = dictionaryFile.getType();
            body.path = dictionaryFile.getPath();
            body.timestamp = dictionaryFile.getTimestamp();
            return body;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. internal/s3select/parquet/reader.go

    			value = sql.FormatSQLTimestamp(time.Unix(60*60*24*int64(val), 0).UTC())
    		}
    	case int64:
    		value = val
    		if logicalType := se.GetLogicalType(); logicalType != nil {
    			if ts := logicalType.GetTIMESTAMP(); ts != nil {
    				var duration time.Duration
    				// Only support UTC normalized timestamps.
    				if ts.IsAdjustedToUTC {
    					switch {
    					case ts.Unit.IsSetNANOS():
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

            if (snapshot != null && versioning.getSnapshotVersions().isEmpty()) {
                String version = artifact.getVersion();
                if (snapshot.getTimestamp() != null && snapshot.getBuildNumber() > 0) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java

            metadata.merge(new Metadata());
    
            String dateAfter = gregorianDate();
    
            String ts = metadata.metadata.getVersioning().getSnapshot().getTimestamp();
            String datePart = DATE_FILTER.matcher(ts).replaceAll("");
    
            /* Allow for this test running across midnight */
            Set<String> expected = new HashSet<>(Arrays.asList(dateBefore, dateAfter));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top