- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,416 for connector (0.32 sec)
-
platforms/documentation/docs/src/snippets/toolingApi/model/groovy/src/main/java/org/gradle/sample/Main.java
// Configure the connector and create the connection GradleConnector connector = GradleConnector.newConnector(); if (args.length > 0) { connector.useInstallation(new File(args[0])); if (args.length > 1) { connector.useGradleUserHomeDir(new File(args[1])); } } connector.forProjectDirectory(new File("."));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ConcurrentToolingApiIntegrationSpec.groovy
} } concurrent.start { def connector = toolingApi.connector(build2) distributionOperation(connector, { it.description = "download for 2"; Thread.sleep(500) }) def connection = connector.connect() try { def build = connection.newBuild() def operation = new ConfigurableOperation(build)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 13.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r213/ModelsWithGradleProjectIdentifierCrossVersionSpec.groovy
FetchProjectModelsBuildAction buildAction = new FetchProjectModelsBuildAction(modelType) def connector = connector() connector.forProjectDirectory(rootDir) connector.searchUpwards(searchUpwards) withConnection(connector) { connection -> connection.action(buildAction).run() } } BuildTestFixture getBuildTestFixture() {
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
connector.useGradleUserHomeDir(new File(context.gradleUserHomeDir.path)) try (def connection = connector.connect()) { connection.getModel(BuildEnvironment.class) } } isolateFromGradleOwnBuild(connector) connector.useGradleUserHomeDir(new File(gradleUserHomeDir.path))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:07:23 UTC 2024 - 12K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/toolingApi/customModel/groovy/tooling/src/main/java/org/gradle/sample/Main.java
// Configure the connector and create the connection GradleConnector connector = GradleConnector.newConnector(); if (args.length > 0) { connector.useInstallation(new File(args[0])); if (args.length > 1) { connector.useGradleUserHomeDir(new File(args[1])); } } connector.forProjectDirectory(new File("../sample-build"));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultGradleConnectorTest.groovy
} def canSpecifyUserHomeDir() { DefaultProjectConnection connection = Mock() File userDir = new File('user-dir') when: def result = connector.useGradleUserHomeDir(userDir).forProjectDirectory(projectDir).connect() then: result == connection and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DefaultDaemonConnectorTest.groovy
expect: def connection = connector.maybeConnect({it.pid == 1} as DummyExplainingSpec) connection && connection.connection.num == 1 } def "connect() returns connection to any existing daemon that matches spec"() { given: startIdleDaemon() startIdleDaemon() expect: def connection = connector.connect({it.pid < 12} as ExplainingSpec)
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/DaemonStopClient.java
DaemonClientConnection connection = connector.maybeConnect(daemon); if (connection == null) { continue; } try { LOGGER.debug("Requesting daemon {} stop when idle", daemon); stopDispatcher.dispatch(connection, new StopWhenIdle(idGenerator.generateId(), connection.getDaemon().getToken()));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/toolingApi/runBuild/groovy/src/main/java/org/gradle/sample/Main.java
// Configure the connector and create the connection GradleConnector connector = GradleConnector.newConnector(); if (args.length > 0) { connector.useInstallation(new File(args[0])); if (args.length > 1) { connector.useGradleUserHomeDir(new File(args[1])); } } connector.forProjectDirectory(new File("."));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1.1K bytes - Viewed (0)