Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for callFromBuildUsingExpression (0.36 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/TransformLoggingIntegrationTest.groovy

                    Red() {
                        super("red")
                    }
    
                    @Override
                    void transform(TransformOutputs outputs) {
                        ${server.callFromBuildUsingExpression("inputArtifact.get().asFile.name")}
                        super.transform(outputs)
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

         */
        public String callFromBuild(String resource) {
            return callFromBuildUsingExpression("\"" + resource + "\"");
        }
    
        /**
         * Returns Java statements to get the given resource, using the given expression to calculate the resource to get.
         */
        public String callFromBuildUsingExpression(String expression) {
            String uriExpression = "\"" + getUri() + "/\" + " + expression;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

        def "can call from client code"() {
            server.start()
            def script = TestUtil.createScript """
                def prefix = "a"
                ${server.callFromBuild("a1")}
                ${server.callFromBuildUsingExpression("prefix + '2'")}
            """
    
            given:
            server.expect("a1")
            server.expect("a2")
    
            when:
            script.run()
            server.stop()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top