- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 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/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) -
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)