Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for ProjectConnection (1.07 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ProjectConnection.java

     *
     * <p>All implementations of {@code ProjectConnection} are thread-safe, and may be shared by any number of threads.</p>
     *
     * <p>All notifications from a given {@code ProjectConnection} instance are delivered by a single thread at a time. Note, however, that the delivery thread may change over time.</p>
     *
     * @since 1.0-milestone-3
     */
    public interface ProjectConnection extends Closeable {
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r26/BuildProgressCrossVersionSpec.groovy

    import org.gradle.tooling.ProjectConnection
    
    class BuildProgressCrossVersionSpec extends ToolingApiSpecification {
        def "generates init script operation when there are init scripts"() {
            file("init.gradle") << "println 'init'"
    
            when:
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
                    connection.newBuild()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiConnection.groovy

     * While still allowing the ToolingApiConnection to be used as a ProjectConnection.
     * This avoids loading the ProjectConnection class from the test code and postbones loading to the tooling api magic.
     */
    
    trait ProjectConnectionTrait implements ProjectConnection {
    }
    
    class ToolingApiConnection {
        private final Object projectConnection
        private final OutputStream stderr
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r43/ToolingApiVersionSpecification.groovy

        }
    
        // since 1.0
        def build() {
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                build.standardOutput = outputStream
                build.run()
            }
        }
    
        // since 1.0
        def getModel() {
            withConnection { ProjectConnection connection ->
                def model = connection.model(EclipseProject)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ContinuousBuildToolingApiSpecification.groovy

        TestFile sourceDir
    
        ProjectConnection projectConnection
    
    
        def setup() {
            buildFile.text = "apply plugin: 'java'\n"
            sourceDir = file("src/main/java").createDir()
        }
    
        @Override
        <T> T withConnection(@DelegatesTo(ProjectConnection) @ClosureParams(value = SimpleType, options = ["org.gradle.tooling.ProjectConnection"]) Closure<T> cl) {
            super.withConnection {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiBackedGradleExecuter.groovy

        ExecutionResult runBuildWithToolingConnection(Function<ProjectConnection, ExecutionResult> action) {
            return run {
                def result = null
                usingToolingConnection(workingDir) {
                    result = action(it)
                }
                result
            }
        }
    
        ExecutionFailure runFailingBuildWithToolingConnection(Function<ProjectConnection, ExecutionFailure> action) {
            // Can just run the action
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedBuildJvmCrossVersionSpec.groovy

    import org.gradle.test.precondition.Requires
    import org.gradle.test.preconditions.IntegTestPreconditions
    import org.gradle.tooling.GradleConnectionException
    import org.gradle.tooling.ProjectConnection
    import org.gradle.tooling.model.GradleProject
    
    @Requires(IntegTestPreconditions.UnsupportedJavaHomeAvailable)
    @TargetGradleVersion("current")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

     */
    package org.gradle.integtests.tooling.r10rc1
    
    import org.gradle.integtests.tooling.fixture.TargetGradleVersion
    import org.gradle.integtests.tooling.fixture.ToolingApiSpecification
    import org.gradle.tooling.ProjectConnection
    import org.gradle.tooling.exceptions.UnsupportedBuildArgumentException
    import org.gradle.tooling.model.GradleProject
    
    class PassingCommandLineArgumentsCrossVersionSpec extends ToolingApiSpecification {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildProgressCrossVersionSpec.groovy

    import org.gradle.integtests.tooling.fixture.AbstractHttpCrossVersionSpec
    import org.gradle.integtests.tooling.fixture.ProgressEvents
    import org.gradle.integtests.tooling.fixture.TargetGradleVersion
    import org.gradle.tooling.ProjectConnection
    import spock.lang.Issue
    
    @TargetGradleVersion(">=3.5")
    class BuildProgressCrossVersionSpec extends AbstractHttpCrossVersionSpec {
    
        @TargetGradleVersion(">=3.5 <4.0")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r35/BuildEnvironmentCrossVersionSpec.groovy

    import org.gradle.integtests.tooling.fixture.ToolingApiSpecification
    import org.gradle.test.precondition.Requires
    import org.gradle.test.preconditions.UnitTestPreconditions
    import org.gradle.tooling.ProjectConnection
    import org.gradle.tooling.UnsupportedVersionException
    import org.gradle.tooling.model.build.BuildEnvironment
    
    class BuildEnvironmentCrossVersionSpec extends ToolingApiSpecification {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top