- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for changeDescriptorPath (1.67 sec)
-
subprojects/core/src/main/java/org/gradle/initialization/DefaultProjectDescriptorRegistry.java
import org.gradle.util.Path; public class DefaultProjectDescriptorRegistry extends DefaultProjectRegistry<DefaultProjectDescriptor> implements ProjectDescriptorRegistry { @Override public void changeDescriptorPath(Path oldPath, Path newPath) { DefaultProjectDescriptor projectDescriptor = removeProject(oldPath.toString()); projectDescriptor.setPath(newPath); addProject(projectDescriptor); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 10:39:11 UTC 2019 - 1.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/ProjectDescriptorRegistry.java
import org.gradle.api.internal.project.ProjectRegistry; import org.gradle.util.Path; public interface ProjectDescriptorRegistry extends ProjectRegistry<DefaultProjectDescriptor> { void changeDescriptorPath(Path oldPath, Path newPath);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 02 16:56:13 UTC 2016 - 899 bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/initialization/DefaultProjectDescriptorRegistryTest.java
// Project is added as a side effect DefaultProjectDescriptor project = new DefaultProjectDescriptor(null, "name", TEST_DIR, registry, FILE_RESOLVER); registry.changeDescriptorPath(Path.path(":"), Path.path(":newPath")); assertThat(registry.getRootProject(), nullValue()); assertThat(registry.getProject(":"), nullValue());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 08 03:33:31 UTC 2022 - 2.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/initialization/DefaultProjectDescriptorTest.groovy
def registry = Mock(ProjectDescriptorRegistry) descriptor.setProjectDescriptorRegistry(registry) when: descriptor.name = "newName" then: 1 * registry.changeDescriptorPath(Path.path(Project.PATH_SEPARATOR + testName.methodName), Path.path(Project.PATH_SEPARATOR + "newName")) descriptor.name == "newName" } def "can set relative project directory"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 08 03:33:31 UTC 2022 - 5.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/DefaultProjectDescriptor.java
} @Override public void setName(String name) { NameValidator.validate(name, "project name", INVALID_NAME_IN_INCLUDE_HINT); projectDescriptorRegistry.changeDescriptorPath(path, path(name)); this.name = name; this.nameExplicitlySet = true; } public boolean isExplicitName() { return nameExplicitlySet; } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 6.6K bytes - Viewed (0)