Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createChildProject (0.17 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/NewDefaultProjectTest.groovy

    import org.gradle.api.InvalidUserDataException
    import org.gradle.test.fixtures.AbstractProjectBuilderSpec
    
    import static org.gradle.util.TestUtil.createChildProject
    
    class NewDefaultProjectTest extends AbstractProjectBuilderSpec {
        def "provides all tasks recursively"() {
            def a = createChildProject(project, "a")
    
            [project, a].each { it.task "foo"; it.task "bar" }
    
            when:
            def rootTasks = project.getAllTasks(true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/api/plugins/JavaPluginTest.groovy

        }
    
        def "build other projects"() {
            given:
            def commonProject = TestUtil.createChildProject(project, "common")
            def middleProject = TestUtil.createChildProject(project, "middle")
            def appProject = TestUtil.createChildProject(project, "app")
    
            when:
            project.pluginManager.apply(JavaPlugin)
            commonProject.pluginManager.apply(JavaPlugin)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. platforms/extensibility/unit-test-fixtures/src/main/java/org/gradle/testfixtures/ProjectBuilder.java

            return this;
        }
    
        /**
         * Creates the project.
         *
         * @return The project
         */
        public Project build() {
            if (parent != null) {
                return impl.createChildProject(name, parent, projectDir);
            }
            return impl.createProject(name, projectDir, gradleUserHomeDir);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/util/TestUtil.groovy

                .withName("test-project")
            if (userHomeDir != null) {
                builder.withGradleUserHomeDir(userHomeDir)
            }
            return builder.build()
        }
    
        static ProjectInternal createChildProject(ProjectInternal parent, String name, File projectDir = null) {
            return ProjectBuilder
                .builder()
                .withName(name)
                .withParent(parent)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. platforms/extensibility/unit-test-fixtures/src/main/java/org/gradle/testfixtures/internal/ProjectBuilderImpl.java

    import java.util.function.Function;
    
    import static org.gradle.internal.concurrent.CompositeStoppable.stoppable;
    
    public class ProjectBuilderImpl {
        private static ServiceRegistry globalServices;
    
        public Project createChildProject(String name, Project parent, @Nullable File projectDir) {
            ProjectInternal parentProject = (ProjectInternal) parent;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:36 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top