Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for isSnapshot (0.09 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                ArtifactRepository localRepository)
                throws RepositoryMetadataStoreException {
            // TODO this could be a lot nicer... should really be in the snapshot transformation?
            if (metadata.isSnapshot()) {
                Metadata prevMetadata = metadata.getMetadata();
    
                for (ArtifactRepository repository : previousMetadata.keySet()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                        // if the POM didn't exist, retry if any repo is configured to always update
                        boolean snapshot = pomArtifact.isSnapshot();
                        for (ArtifactRepository repository : remoteRepositories) {
                            ArtifactRepositoryPolicy policy =
                                    snapshot ? repository.getSnapshots() : repository.getReleases();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java

            // Here, we need to determine which policy to use. Release updateInterval will be used when
            // the metadata refers to a release artifact or meta-version, and snapshot updateInterval will be used when
            // it refers to a snapshot artifact or meta-version.
            // NOTE: Release metadata includes version information about artifacts that have been released, to allow
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

            this.groupId = groupId;
        }
    
        @Override
        public void setArtifactId(String artifactId) {
            this.artifactId = artifactId;
        }
    
        @Override
        public boolean isSnapshot() {
            return getBaseVersion() != null
                    && (getBaseVersion().endsWith(SNAPSHOT_VERSION)
                            || getBaseVersion().equals(LATEST_VERSION));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

        /**
         * Checks whether a given artifact version is considered a {@code SNAPSHOT} or not.
         * <p>
         * Shortcut for {@code getService(ArtifactManager.class).isSnapshot(...)}.
         * <p>
         * In case there is {@link Artifact} in scope, the recommended way to perform this check is
         * use of {@link Artifact#isSnapshot()} instead.
         *
         * @param version artifact version
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java

                    throw new IllegalArgumentException("constraint not supported by this parser");
                }
    
                @Override
                public boolean isSnapshot(String version) {
                    requireNonNull(version, "version");
                    return version.endsWith("SNAPSHOT");
                }
            };
        }
    
        /**
         * Creates a new model builder instance.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            ArtifactRepositoryPolicy policy = artifact.isSnapshot() ? repository.getSnapshots() : repository.getReleases();
    
            if (!policy.isEnabled()) {
                logger.debug(
                        "Skipping disabled repository " + repository.getId() + " for resolution of " + artifact.getId());
    
            } else if (artifact.isSnapshot() || !artifact.getFile().exists()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                if (artifact.isSnapshot()) {
                    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)
  9. api/maven-api-metadata/src/main/mdo/metadata.mdo

                    }
    
                    Snapshot s = v.getSnapshot();
                    Snapshot snapshot = versioning.getSnapshot();
                    if ( snapshot != null )
                    {
                        boolean updateSnapshotVersions = false;
                        if ( s == null )
                        {
                            s = new Snapshot();
                            v.setSnapshot( s );
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed May 15 17:32:27 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            assert response.json() == snapshot(
                [{"name": "Spider-Boy", "age": 18, "id": IsInt()}]
            )
    
            # Update a hero
            response = client.patch(
                f"/heroes/{hero_id}", json={"name": "Dog Pond", "age": None}
            )
            assert response.status_code == 200, response.text
            assert response.json() == snapshot(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
Back to top