public void fillOutputData()

in core-it-support/core-it-wagon/src/main/java/org/apache/maven/wagon/providers/coreit/CoreItWagon.java [125:156]


    public void fillOutputData(OutputData outputData) throws TransferFailedException {
        Properties props = new Properties();

        if (getRepository().getPermissions() != null) {
            String dirPerms = getRepository().getPermissions().getDirectoryMode();
            put(props, "directory.mode", dirPerms);

            String filePerms = getRepository().getPermissions().getFileMode();
            put(props, "file.mode", filePerms);
        }

        AuthenticationInfo auth = getAuthenticationInfo();
        if (auth != null) {
            put(props, "username", auth.getUserName());
            put(props, "password", auth.getPassword());
            put(props, "privateKey", auth.getPrivateKey());
            put(props, "passphrase", auth.getPassphrase());
        }

        try {
            File file = new File(System.getProperty("user.dir"), "target/wagon.properties").getAbsoluteFile();
            file.getParentFile().mkdirs();

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

        outputData.setOutputStream(new ByteArrayOutputStream());
    }