Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for PropertyQueryException (0.24 sec)

  1. platforms/jvm/language-java/src/test/groovy/org/gradle/api/tasks/compile/JavaCompileTest.groovy

            when:
            javaCompile.options.fork = true
            javaCompile.options.forkOptions.executable = invalidExecutable
            javaCompile.createSpec()
    
            then:
            def e = thrown(AbstractProperty.PropertyQueryException)
            def cause = TestUtil.getRootCause(e) as InvalidUserDataException
            cause.message.contains("The configured executable does not exist")
            cause.message.contains(invalidExecutable.absolutePath)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/test/groovy/org/gradle/api/tasks/JavaExecTest.groovy

            javaCompile.options.fork = true
            javaCompile.options.forkOptions.javaHome = new File("invalidJavaHome")
            javaCompile.createSpec()
    
            then:
            def e = thrown(AbstractProperty.PropertyQueryException)
            def cause = TestUtil.getRootCause(e) as InvalidUserDataException
            cause.message.contains("The configured Java home does not exist")
            cause.message.contains(invalidJavaHome)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

                formatter.append("an object with type ");
                formatter.appendType(modelObject.getClass());
            }
        }
    
        @Contextual
        public static class PropertyQueryException extends RuntimeException {
            public PropertyQueryException(String message, Throwable cause) {
                super(message, cause);
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTest.groovy

            when:
            task.executable = invalidExecutable
            task.javaLauncher.get()
    
            then:
            def e = thrown(AbstractProperty.PropertyQueryException)
            def cause = TestUtil.getRootCause(e) as InvalidUserDataException
            cause.message.contains("The configured executable does not exist")
            cause.message.contains(invalidExecutable.absolutePath)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.present
    
            then:
            def e = thrown(AbstractProperty.PropertyQueryException)
            e.message == "Failed to query the value of <property>."
            e.cause.message == "broken!"
    
            when:
            property.get()
    
            then:
            def e2 = thrown(AbstractProperty.PropertyQueryException)
            e2.message == "Failed to query the value of <property>."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
Back to top