- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for createFromVersion (0.09 sec)
-
compat/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java
Artifact artifact = factory.createDependencyArtifact( "test-grp", "test-artifact", VersionRange.createFromVersion("1.0"), "type", null, "system", "provided"); Artifact artifact2 = factory.createDependencyArtifact( "test-grp", "test-artifact-2", VersionRange.createFromVersion("1.0"), "type", null, "system", "test"); Artifact artifact3 = factory.createDependencyArtifact( "test-grp",
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/DefaultArtifactTest.java
void setUp() throws Exception { artifactHandler = new ArtifactHandlerMock(); versionRange = VersionRange.createFromVersion(version); artifact = new DefaultArtifact(groupId, artifactId, versionRange, scope, type, classifier, artifactHandler); snapshotVersionRange = VersionRange.createFromVersion(snapshotResolvedVersion); snapshotArtifact = new DefaultArtifact(
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.4K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
String type, String classifier, ArtifactHandler artifactHandler) { this( groupId, artifactId, VersionRange.createFromVersion(version), scope, type, classifier, artifactHandler, false); } @SuppressWarnings("checkstyle:ParameterNumber")
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.6K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/ArtifactUtilsTest.java
/** * Tests {@link ArtifactUtils}. * */ class ArtifactUtilsTest { private Artifact newArtifact(String aid) { return new DefaultArtifact("group", aid, VersionRange.createFromVersion("1.0"), "test", "jar", "tests", null); } @Test void testIsSnapshot() { assertFalse(ArtifactUtils.isSnapshot(null)); assertFalse(ArtifactUtils.isSnapshot(""));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.9K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java
List<Restriction> restrictions = spec.getRestrictions(); assertEquals(1, restrictions.size(), CHECK_NUM_RESTRICTIONS); VersionRange version = VersionRange.createFromVersion("1.0"); assertSame(version, VersionRange.createFromVersion("1.0")); // same instance from version cache restrictions = version.getRestrictions(); assertEquals(0, restrictions.size(), CHECK_NUM_RESTRICTIONS);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 44.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java
String type, String classifier, String inheritedScope) { VersionRange versionRange = null; if (version != null) { versionRange = VersionRange.createFromVersion(version); } return createArtifact(groupId, artifactId, versionRange, type, classifier, scope, inheritedScope); } private Artifact createArtifact( String groupId,
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.9K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java
// </dependency> // ... // // And the range is not set so we'll check here and set it. jvz. if (range == null) { range = VersionRange.createFromVersion(artifact.getVersion()); } DefaultArtifact clone = new DefaultArtifact( artifact.getGroupId(), artifact.getArtifactId(), range,
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.9K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java
Artifact artifact = new DefaultArtifact( "sample.group", "sample-art", VersionRange.createFromVersion("1.0"), "scope", "jar", "classifier", null); artifact.setFile(getTestFile("target/sample-art"));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.4K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
restriction = new Restriction(lowerVersion, lowerBoundInclusive, upperVersion, upperBoundInclusive); } return restriction; } public static VersionRange createFromVersion(String version) { if (DefaultArtifact.empty(version)) { return null; } VersionRange cached = CACHE_VERSION.get(version); if (cached == null) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 19K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
// note: see MNG-3454. This causes a problem, but fixing it may break more. artifact.setVersionRange(VersionRange.createFromVersion(relocation.getVersion())); relocatedArtifact = artifact; project.setVersion(relocation.getVersion()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0)