- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for getParent (0.12 sec)
-
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java
String groupId = m.getGroupId(); if (groupId == null && m.getParent() != null) { groupId = m.getParent().getGroupId(); } String version = m.getVersion(); if (version == null && m.getParent() != null) { version = m.getParent().getVersion(); } return new RelativeProject(groupId, m.getArtifactId(), version); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
assertNull(root.getParent()); assertNull(root.toRealPath().getParent()); MoreFiles.createParentDirectories(root); // test that there's no exception } } public void testCreateParentDirectories_relativePath() throws IOException { Path path = FS.getPath("nonexistent.file"); assertNull(path.getParent()); assertNotNull(path.toAbsolutePath().getParent());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 27.4K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t09/ProjectInheritanceTest.java
MavenProject project0 = getProjectWithDependencies(pom0); MavenProject project1 = getProjectWithDependencies(pom1); assertNotNull(project1.getParent(), "Parent is null"); assertEquals(pom0Basedir, project1.getParent().getBasedir()); Map map = project1.getArtifactMap(); assertNotNull(map, "No artifacts"); assertTrue(map.size() > 0, "No Artifacts");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomBuilder.java
if (POM_PACKAGING.equals(packaging)) { // raw to consumer transform model = model.withRoot(false).withModules(null).withSubprojects(null); if (model.getParent() != null) { model = model.withParent(model.getParent().withRelativePath(null)); } if (!model.isPreserveModelVersion()) { model = model.withPreserveModelVersion(false);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 11K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
.filter(Objects::nonNull) .findFirst() .orElseGet(() -> modelLocator.locatePom(projectDirectory)); if (!pom.equals(projectDirectory) && !pom.getParent().equals(projectDirectory)) { throw new IllegalArgumentException("The POM found does not belong to the given directory: " + pom); } return pom; } @Deprecated @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java
String groupId = model.getGroupId(); if (groupId == null && model.getParent() != null) { groupId = model.getParent().getGroupId(); } String artifactId = model.getArtifactId(); String version = model.getVersion(); if (version == null && model.getParent() != null) { version = model.getParent().getVersion(); } if (version == null) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MoreFilesTest.java
assertNull(root.getParent()); assertNull(root.toRealPath().getParent()); MoreFiles.createParentDirectories(root); // test that there's no exception } } public void testCreateParentDirectories_relativePath() throws IOException { Path path = FS.getPath("nonexistent.file"); assertNull(path.getParent()); assertNotNull(path.toAbsolutePath().getParent());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 16:07:00 UTC 2024 - 26.5K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/DefaultArtifactResolverTest.java
// we want to see all top-level thread groups ThreadGroup tg = Thread.currentThread().getThreadGroup(); while (tg.getParent() == null) { tg = tg.getParent(); } ThreadGroup[] tgList = new ThreadGroup[tg.activeGroupCount()]; tg.enumerate(tgList); boolean seen = false;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/MetadataBridge.java
} public void merge(File current, File result) throws RepositoryException { try { if (current.exists()) { Files.createDirectories(result.toPath().getParent()); Files.copy(current.toPath(), result.toPath()); } ArtifactRepository localRepo = new MetadataRepository(result); metadata.storeInLocalRepository(localRepo, localRepo);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.4K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t07/ProjectInheritanceTest.java
File pom1 = new File(pom0Basedir, "p1/pom.xml"); // load everything... MavenProject project1 = getProjectWithDependencies(pom1); assertEquals(pom0Basedir, project1.getParent().getBasedir()); System.out.println("Project " + project1.getId() + " " + project1); Set set = project1.getArtifacts(); assertNotNull(set, "No artifacts");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0)