public void fillOutputData()

in core-it-support/core-it-wagon/src/main/java/org/apache/maven/wagon/providers/coreit/CoreItHttpWagon.java [124:150]


    public void fillOutputData(OutputData outputData) throws TransferFailedException {
        Properties props = new Properties();
        if (getRepository().getPermissions() != null) {
            String dirPerms = getRepository().getPermissions().getDirectoryMode();

            if (dirPerms != null) {
                props.setProperty("directory.mode", dirPerms);
            }

            String filePerms = getRepository().getPermissions().getFileMode();
            if (filePerms != null) {
                props.setProperty("file.mode", filePerms);
            }
        }

        try {
            new File("target").mkdirs();

            try (OutputStream os = new FileOutputStream("target/wagon.properties")) {
                props.store(os, "MAVEN-CORE-IT-WAGON");
            }
        } catch (IOException e) {
            throw new TransferFailedException(e.getMessage(), e);
        }

        outputData.setOutputStream(new ByteArrayOutputStream());
    }