- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 27 for wrapperExecuter (0.14 sec)
-
platforms/core-runtime/wrapper-main/src/crossVersionTest/groovy/org/gradle/integtests/wrapper/AbstractWrapperCrossVersionIntegrationTest.groovy
} } """ settingsFile << "rootProject.name = 'wrapper'" version(wrapperVersion).withTasks('wrapper').run() def executer = wrapperExecuter(wrapperVersion) executer } private GradleExecuter wrapperExecuter(GradleDistribution wrapper) { def executer = super.version(wrapper) if (!wrapper.supportsSpacesInGradleAndJavaOpts) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 3.2K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperIntegrationTest.groovy
def "can recover from a broken distribution"() { buildFile << "task hello" prepareWrapper() def gradleUserHome = testDirectory.file('some-custom-user-home') when: def executer = wrapperExecuter.withGradleUserHomeDir(gradleUserHome) result = executer.withTasks("hello").run() then: result.assertTaskExecuted(":hello") executer.stop() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 2K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/crossVersionTest/groovy/org/gradle/integtests/wrapper/WrapperCrossVersionIntegrationTest.groovy
cleanup: cleanupDaemons(executer, current) } @Requires(value = [ IntegTestPreconditions.NotEmbeddedExecutor, UnitTestPreconditions.NotWindowsJavaBefore11 ], reason = "wrapperExecuter requires a real distribution, https://github.com/gradle/gradle-private/issues/3758") void canUseWrapperFromCurrentVersionToRunPreviousVersion() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:58:56 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/AbstractWrapperIntegrationSpec.groovy
import org.gradle.test.fixtures.file.TestFile import org.gradle.test.fixtures.keystore.TestKeyStore class AbstractWrapperIntegrationSpec extends AbstractIntegrationSpec { public static final String NOT_EMBEDDED_REASON = "wrapperExecuter requires a real distribution" void installationIn(TestFile userHomeDir) { def distDir = userHomeDir.file("wrapper/dists/${FilenameUtils.getBaseName(distribution.binDistribution.absolutePath)}").assertIsDir()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/WrapperExecutor.java
private final WrapperConfiguration config = new WrapperConfiguration(); public static WrapperExecutor forProjectDirectory(File projectDir) { return new WrapperExecutor(new File(projectDir, "gradle/wrapper/gradle-wrapper.properties"), new Properties()); } public static WrapperExecutor forWrapperPropertiesFile(File propertiesFile) { if (!propertiesFile.exists()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/software/build-init/src/test/groovy/org/gradle/api/tasks/wrapper/WrapperTest.groovy
properties.getProperty(WrapperExecutor.DISTRIBUTION_URL_PROPERTY) == wrapper.getDistributionUrl() properties.getProperty(WrapperExecutor.DISTRIBUTION_SHA_256_SUM) == wrapper.getDistributionSha256Sum() properties.getProperty(WrapperExecutor.DISTRIBUTION_BASE_PROPERTY) == wrapper.getDistributionBase().toString() properties.getProperty(WrapperExecutor.DISTRIBUTION_PATH_PROPERTY) == wrapper.getDistributionPath()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 08 03:11:06 UTC 2024 - 9.8K bytes - Viewed (0) -
platforms/software/build-init/src/main/java/org/gradle/api/tasks/wrapper/internal/WrapperGenerator.java
wrapperProperties.put(WrapperExecutor.DISTRIBUTION_URL_PROPERTY, distributionUrl); if (distributionSha256Sum != null) { wrapperProperties.put(WrapperExecutor.DISTRIBUTION_SHA_256_SUM, distributionSha256Sum); } wrapperProperties.put(WrapperExecutor.DISTRIBUTION_BASE_PROPERTY, distributionBase.toString()); wrapperProperties.put(WrapperExecutor.DISTRIBUTION_PATH_PROPERTY, distributionPath);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Dec 15 00:45:32 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/WrapperExecutorTest.groovy
given: properties.distributionUrl = 'some/relative/url/to/bin.zip' propertiesFile.withOutputStream { properties.store(it, 'header') } when: WrapperExecutor wrapper = WrapperExecutor.forWrapperPropertiesFile(propertiesFile) then: //distribution uri should resolve into absolute path wrapper.distribution.schemeSpecificPart != 'some/relative/url/to/bin.zip'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 7.7K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/main/java/org/gradle/wrapper/GradleWrapperMain.java
Logger logger = logger(options); WrapperExecutor wrapperExecutor = WrapperExecutor.forWrapperPropertiesFile(propertiesFile); WrapperConfiguration configuration = wrapperExecutor.getConfiguration(); IDownload download = new Download(logger, "gradlew", UNKNOWN_VERSION, configuration.getNetworkTimeout()); wrapperExecutor.execute( args,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 4.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/DistributionFactory.java
*/ public Distribution getDefaultDistribution(File projectDir, boolean searchUpwards) { BuildLayout layout = new BuildLayoutFactory().getLayoutFor(projectDir, searchUpwards); WrapperExecutor wrapper = WrapperExecutor.forProjectDirectory(layout.getRootDirectory()); if (wrapper.getDistribution() != null) { return new ZippedDistribution(wrapper.getConfiguration(), clock); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:58:56 UTC 2024 - 10.2K bytes - Viewed (0)