- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for Connector (0.33 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r213/ModelsWithGradleProjectIdentifierCrossVersionSpec.groovy
} private getModelWithProjectConnection(TestFile rootDir, Class modelType = GradleProject, boolean searchUpwards = true) { def connector = connector() connector.forProjectDirectory(rootDir) connector.searchUpwards(searchUpwards) return withConnection(connector) { it.getModel(modelType) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r65/ToolingApiShutdownCrossVersionSpec.groovy
} def "cannot create new project connection after disconnect"() { setup: def connector = toolingApi.connector() withConnection(connector) { connection -> connection.getModel(EclipseProject) } connector.disconnect() when: connector.connect() then: def e = thrown(RuntimeException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 11.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApi.groovy
} def <T> T withConnection(@DelegatesTo(ProjectConnection) Closure<T> cl) { def connector = connector() withConnection(connector, cl) } def <T> T withConnection(connector, @DelegatesTo(ProjectConnection) Closure<T> cl) { return withConnectionRaw(connector, cl) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:07:23 UTC 2024 - 12K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DefaultDaemonConnectorTest.groovy
given: startIdleDaemon() assert !registry.all.empty connector.connector.connect(_ as Address) >> { throw new ConnectException("Problem!", new RuntimeException("foo")) } when: def connection = connector.maybeConnect( { true } as ExplainingSpec) then: !connection registry.all.empty }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClientServicesSupport.java
return new DaemonStopClient(connector, idGenerator); } @Provides NotifyDaemonAboutChangedPathsClient createNotifyDaemonAboutChangedPathsClient(DaemonConnector connector, IdGenerator<UUID> idGenerator, DaemonRegistry daemonRegistry) { return new NotifyDaemonAboutChangedPathsClient(connector, idGenerator, daemonRegistry); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 09:21:42 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r213/ModelsWithGradleProjectCrossVersionSpec.groovy
def connector = connector() connector.forProjectDirectory(rootDir.absoluteFile) connector.searchUpwards(searchUpwards) def model = withConnection(connector) { it.getModel(modelType) } return toGradleProject(model) } private <T> T getModelWithProjectConnection(TestFile rootDir, Class<T> modelType) { def connector = connector()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 9K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientTest.groovy
1 * connection.stop() 0 * connection._ } def "does not loop forever finding usable daemons"() { given: connector.connect(compatibilitySpec) >> connection connector.startDaemon(compatibilitySpec) >> connection connection.daemon >> Stub(DaemonConnectDetails) connection.receive() >> Mock(DaemonUnavailable) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 19:54:56 UTC 2024 - 10K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r63/DistributionChecksumCrossVersionSpec.groovy
} file('gradle/wrapper/gradle-wrapper.properties') << 'distributionSha256Sum=bad' when: def connector = this.connector() connector.useBuildDistribution() withConnection(connector) { ProjectConnection connection -> connection.newBuild().forTasks("help").run() } then: def e = thrown(GradleConnectionException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/NotifyDaemonAboutChangedPathsClient.java
public class NotifyDaemonAboutChangedPathsClient { private final DaemonConnector connector; private final IdGenerator<UUID> idGenerator; private final DaemonRegistry daemonRegistry; public NotifyDaemonAboutChangedPathsClient(DaemonConnector connector, IdGenerator<UUID> idGenerator, DaemonRegistry daemonRegistry) { this.connector = connector; this.idGenerator = idGenerator; this.daemonRegistry = daemonRegistry;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiClientJdkCompatibilityTest.groovy
GradleConnector connector = GradleConnector.newConnector(); connector.useGradleVersion(gradleVersion); ProjectConnection connection = null; try { connection = connector.forProjectDirectory(projectLocation).useGradleUserHomeDir(gradleUserHome).connect();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 10:21:26 UTC 2024 - 12.9K bytes - Viewed (0)