Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for withBindings (0.77 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateOperationFactorySpec.groovy

        }
    
        def "factory creates isolated builders"() {
    
            when:
            def operation1 = factory.newTemplateOperation()
            def operation2 = factory.newTemplateOperation()
    
            operation1.withBindings(key:"value")
            operation1.withTarget(new File("atarget"))
    
            then:
            operation1 != operation2
            operation1.bindings.size() == 4
            operation2.bindings.size() == 3
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/TemplateOperationFactory.java

                }
                return this;
            }
    
            public TemplateOperationBuilder withBindings(Map<String, String> bindings) {
                this.bindings.putAll(bindings);
                return this;
            }
    
            public TemplateOperationBuilder withBinding(String name, String value) {
                bindings.put(name, value);
                return this;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateFactoryTest.groovy

            1 * templateOperationBuilder.withBinding("basePackagePrefix", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("packageDecl", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("className", "") >> templateOperationBuilder
            1 * templateOperationBuilder.withBinding("fileComment", _) >> templateOperationBuilder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 20:26:42 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

                .withBinding("componentTypeIndex", "" + (descriptor.componentType.ordinal + 1))
                .withBinding("packageNameChoice", packageNameChoice)
                .withBinding("subprojectName", settings.subprojects.first())
                .withBinding("toolChain", toolChain)
                .withBinding("exampleClass", exampleClass)
                .withBinding("sourceFile", sourceFile)
                .withBinding("testSourceFile", testSourceFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 17:51:21 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/SwiftProjectInitDescriptor.java

                .withBinding("projectName", settings.getProjectName())
                .withBinding("moduleName", moduleName)
                .withBinding("fileComment", settings.isWithComments() ? "This source file was generated by the Gradle 'init' task" : "")
                .create();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 24 19:41:01 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/TemplateFactory.java

                .withBinding("basePackagePrefix", joinIfNotEmpty(basePackageName, "."))
                .withBinding("packageDecl", packageDecl)
                .withBinding("className", className)
                .withBinding("fileComment", initSettings.isWithComments() ? "This source file was generated by the Gradle 'init' task" : "");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:38:39 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/CppProjectInitDescriptor.java

                .withBinding("projectName", settings.getProjectName())
                .withBinding("namespace", namespace)
                .withBinding("fileComment", settings.isWithComments() ? "This source file was generated by the Gradle 'init' task" : "")
                .create();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 19:14:24 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top