protected void setToolchainsLocation()

in src/main/java/org/apache/maven/shared/invoker/MavenCommandLineBuilder.java [163:179]


    protected void setToolchainsLocation(InvocationRequest request, Commandline cli) {
        File toolchainsFile = request.getToolchainsFile();

        if (toolchainsFile != null) {
            try {
                toolchainsFile = toolchainsFile.getCanonicalFile();
            } catch (IOException e) {
                logger.debug(
                        "Failed to canonicalize toolchains path: " + toolchainsFile.getAbsolutePath()
                                + ". Using as-is.",
                        e);
            }

            cli.createArg().setValue("-t");
            cli.createArg().setValue(toolchainsFile.getPath());
        }
    }