Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fileWrite (0.04 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        public File createFile(File dir, String filename, String contents, String encoding) throws IOException {
            File file = new File(dir, filename);
    
            file.getParentFile().mkdirs();
    
            FileUtils.fileWrite(file.getPath(), encoding, contents);
    
            markForDeletion(file);
    
            return file;
        }
    
        public String getFileContents(File file, String encoding) throws IOException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

                    "Transfer listener still registered after getArtifact");
    
            /* putArtifact */
            File sampleFile = getTestFile("target/test-file");
            FileUtils.fileWrite(sampleFile.getAbsolutePath(), "sample file");
    
            assertFalse(
                    wagon.getTransferEventSupport().hasTransferListener(transferListener),
                    "Transfer listener is registered before test");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top