Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for DoSomething (0.15 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/ParallelTaskExecutionIntegrationTest.groovy

                    @OutputFiles
                    FileCollection getOutputFiles() {
                        throw new RuntimeException('BOOM!')
                    }
    
                    @TaskAction
                    void doSomething() {
                        println "Executing broken task..."
                    }
                }
    
                task brokenTask(type: BrokenTask)
                aPing.finalizedBy brokenTask
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 14:00:51 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          tester.testConstructor(constructor);
        }
      }
    
      private interface Foo<T> {
        void doSomething(T bar, Integer baz);
      }
    
      private static class StringFoo implements Foo<String> {
    
        @Override
        public void doSomething(String bar, Integer baz) {
          checkNotNull(bar);
          checkNotNull(baz);
        }
      }
    
      public void testBridgeMethodIgnored() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Throwables.java

       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
       *     return handle(e);
       *   } catch (Throwable t) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Throwables.java

       * client code to signal to the compiler that statements after the call are unreachable. Example
       * usage:
       *
       * <pre>
       * T doSomething() {
       *   try {
       *     return someMethodThatCouldThrowAnything();
       *   } catch (IKnowWhatToDoWithThisException e) {
       *     return handle(e);
       *   } catch (Throwable t) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 06 15:38:58 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java-base/src/testFixtures/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy

                }
            """
            file("src/main/${language.name}/Client.${language.name}") << """import org.apache.commons.lang3.exception.ExceptionUtils;
                public class Client {
                    public void doSomething() {
                        ExceptionUtils.rethrow(new RuntimeException("ok"));
                    }
                }
            """
    
            when:
            executer.withArgument('-PuseCommons')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 30K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

                    public Foo() {
                        getInputs().property("a", null).optional(true);
                    }
    
                    @TaskAction
                    public void doSomething() {}
                }
            """
    
            buildFile << """
                task foo(type: Foo)
            """
    
            expect:
            succeeds "foo"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/TomlDependenciesExtensionIntegrationTest.groovy

                class CheckDeps extends DefaultTask {
                    @InputFiles
                    final ConfigurableFileCollection input = project.objects.fileCollection()
    
                    @TaskAction
                    void doSomething() {
                        println input.files.name
                    }
                }
            """
    
            when:
            lib.pom.expectGet()
            lib.artifact.expectGet()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 33K bytes
    - Viewed (0)
Back to top