Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for WriteString (0.09 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                        .artifactId("test")
                        .version("1.0.0")
                        .build();
    
                Path pomFile = projectDir.resolve("pom.xml");
                Files.writeString(pomFile, pomXml);
    
                UpgradeContext context = createMockContext(projectDir);
    
                // Mock successful strategy execution
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

                            .groupId("test")
                            .artifactId("test")
                            .version("1.0.0")
                            .build();
                    Files.writeString(pomFile, pomContent);
    
                    // Update context to use the temp directory
                    when(context.invokerRequest.cwd()).thenReturn(tempDir);
    
                    // Mock successful strategy execution
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

            if (!Files.exists(jvmConfigPath)) {
                // No jvm.config file - output nothing (create empty file if output specified)
                if (outputFile != null) {
                    try {
                        Files.writeString(outputFile, "", StandardCharsets.UTF_8);
                    } catch (IOException e) {
                        System.err.println("ERROR: Failed to write output file: " + e.getMessage());
                        System.err.flush();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 10 16:40:06 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/bytes/buffer.go

    	if !ok {
    		m = b.grow(len(p))
    	}
    	return copy(b.buf[m:], p), nil
    }
    
    // WriteString appends the contents of s to the buffer, growing the buffer as
    // needed. The return value n is the length of s; err is always nil. If the
    // buffer becomes too large, WriteString will panic with [ErrTooLarge].
    func (b *Buffer) WriteString(s string) (n int, err error) {
    	b.lastRead = opInvalid
    	m, ok := b.tryGrowByReslice(len(s))
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
    	check(t, testname+" (fill 1)", buf, s)
    	for ; n > 0; n-- {
    		m, err := buf.WriteString(fus)
    		if m != len(fus) {
    			t.Errorf(testname+" (fill 2): m == %d, expected %d", m, len(fus))
    		}
    		if err != nil {
    			t.Errorf(testname+" (fill 3): err should always be nil, found err == %s", err)
    		}
    		s += fus
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoal.java

                Document document = entry.getValue();
                try {
                    // Use domtrip for perfect formatting preservation
                    String xmlContent = DomUtils.toXml(document);
                    Files.writeString(pomPath, xmlContent);
                    context.detail("Saved: " + pomPath);
                } catch (Exception e) {
                    context.failure("Failed to save " + pomPath + ": " + e.getMessage());
                }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    	parser.errorWriter = &errBuf
    	ctxt.DiagFunc = func(format string, args ...any) {
    		failed = true
    		s := fmt.Sprintf(format, args...)
    		if !strings.HasSuffix(s, "\n") {
    			s += "\n"
    		}
    		errBuf.WriteString(s)
    	}
    	for _, flag := range flags {
    		switch flag {
    		case "dynlink":
    			ctxt.Flag_dynlink = true
    		default:
    			t.Errorf("unknown flag %s", flag)
    		}
    	}
    	pList.Firstpc, ok = parser.Parse()
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 18:45:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

        }
    
        /**
         * Writes a Document to a file using the same format as the existing codebase.
         */
        private void writePomToFile(Document document, Path filePath) throws Exception {
            Files.writeString(filePath, document.toXml());
        }
    
        /**
         * Analyzes plugins using effective models built from the temp directory.
         * Returns a map of POM path to the set of plugin keys that need management.
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 37K bytes
    - Viewed (0)
  9. lib/fips140/v1.1.0-rc1.zip

    := range f.Comments { for _, l := range c.List { for k, v := range replacements { if k == "k" { continue } l.Text = strings.ReplaceAll(l.Text, k, v) } } } out, err := os.Create(*outputFile) if err != nil { log.Fatal(err) } defer out.Close() out.WriteString("// Code generated by generate1024.go. DO NOT EDIT.\n\n") f.Comments = cmap.Filter(f).Comments() err = format.Node(out, fset, f) if err != nil { log.Fatal(err) } } golang.org/fips140@v1.1.0-rc1/fips140/v1.1.0-rc1/mlkem/mlkem1024.go // Code generated...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top