- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,019 for doTask (0.13 sec)
-
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleBuildResultFunctionalTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 5.4K bytes - Viewed (0) -
platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerBuildFailureIntegrationTest.groovy
*/ def "does not throw exception when build fails expectantly"() { given: buildScript """ task helloWorld { doLast { throw new GradleException('Expected exception') } } """ when: runner('helloWorld').buildAndFail() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 22:36:52 UTC 2023 - 5.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/FlatDirResolveIntegrationTest.groovy
repositories { flatDir { dir 'repo' } } configurations { compile } dependencies { compile 'group:a:1.4' compile 'group:b:2.0' compile 'group:c:' } task check { def files = configurations.compile doLast { assert files.collect { it.name } == ['a-1.4.jar', 'b.jar', 'c.jar'] } } """ expect: succeeds "check" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/artifacts/generatedFileDependencies/groovy/build.gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 600 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 6.7K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/stopExecutionException/groovy/build.gradle
def compile = tasks.register('compile') { doLast { println 'We are doing the compile.' } } compile.configure { doFirst { // Here you would put arbitrary conditions in real life. if (true) { throw new StopExecutionException() } } } tasks.register('myTask') { dependsOn('compile') doLast { println 'I am not affected' }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 401 bytes - Viewed (0) -
platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/plugins/TestSuiteModelIntegrationSpec.groovy
buildFile << ''' model { tasks { create("printSourceNames") { def sources = $.testSuites.main.sources doLast { println "names: ${sources.values()*.name}" } } } } ''' when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 10.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedTypeWithUnmanagedPropertiesIntegrationTest.groovy
tasks.create("fromPlugin") { doLast { println "fromPlugin: $os.name" } } } } apply type: RulePlugin model { tasks { create("fromScript") { it.doLast { println "fromScript: " + $("platform.operatingSystem").name } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5K bytes - Viewed (0) -
subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskFailureIntegrationTest.groovy
task broken { doLast { ${server.callFromBuild('buildA')} throw new RuntimeException("broken") } } processResources.dependsOn(broken) """ dependency("org.test:buildB:1.0") buildB.buildFile << """ task broken { doLast {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 08 20:51:23 UTC 2021 - 5.1K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultStreamHasher.java
try { return doHash(inputStream, ByteStreams.nullOutputStream()); } catch (IOException e) { throw new UncheckedIOException("Failed to create MD5 hash for file content.", e); } } @Override public HashCode hashCopy(InputStream inputStream, OutputStream outputStream) throws IOException { return doHash(inputStream, outputStream); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 2.5K bytes - Viewed (0)