Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isBuilder (0.22 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/visual-studio/groovy/build.gradle

            Issue2 = N
            Text2 = The projects in this solution are ${projects*.name}.
        EndGlobalSection
    """
                    def insertPos = content.text.lastIndexOf("EndGlobal")
                    content.asBuilder().insert(insertPos, sourceControlSection)
                }
            }
        }
    }
    // end::customize-solution-files[]
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/main/groovy/org/gradle/ide/visualstudio/tasks/internal/VisualStudioSolutionFile.groovy

            baseText = inputStream.text
        }
    
        @Override
        void store(OutputStream outputStream) {
            def provider = new SimpleTextProvider()
            generateContent(provider.asBuilder())
            actions.each {
                it.execute(provider)
            }
            outputStream << TextUtil.convertLineSeparators(provider.getText(), TextUtil.getWindowsLineSeparator())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. platforms/ide/ide-native/src/main/java/org/gradle/ide/visualstudio/TextProvider.java

        /**
         * Replace the content.
         */
        void setText(String value);
    
        /**
         * Get the content as a {@link StringBuilder}, permitting direct modification.
         */
        StringBuilder asBuilder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/visualstudio/VisualStudioSolution.java

     *
     *  model {
     *      visualStudio {
     *          solution {
     *              solutionFile.location = "vs/${name}.sln"
     *              solutionFile.withContent { TextProvider content -&gt;
     *                  content.asBuilder().insert(0, "# GENERATED FILE: DO NOT EDIT\n")
     *                  content.text = content.text.replaceAll("HideSolutionNode = FALSE", "HideSolutionNode = TRUE")
     *              }
     *          }
     *      }
     *  }
     * </pre>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/tasks/internal/VisualStudioSolutionFileTest.groovy

            when:
            solutionFile.actions << ({ TextProvider text ->
                text.setText("foo")
            } as Action)
            solutionFile.actions << ({ TextProvider text ->
                text.asBuilder().append("bar")
            } as Action)
    
            then:
            generatedSolutionFile.text == "foobar"
        }
    
        def "can get and set text with actions"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top