public static void warnForPlatformSpecifics()

in src/main/java/org/apache/maven/plugins/assembly/utils/AssemblyFormatUtils.java [423:444]


    public static void warnForPlatformSpecifics(Logger logger, String destDirectory) {
        if (Os.isFamily(Os.FAMILY_WINDOWS)) {
            if (isUnixRootReference(destDirectory)) {
                logger.error("OS=Windows and the assembly descriptor contains a *nix-specific root-relative reference"
                        + " (starting with slash): " + destDirectory);
            } else if (isWindowsPath(destDirectory)) {
                logger.warn("The assembly descriptor contains a Windows-specific directory reference"
                        + " (with a drive letter). This is not portable and will fail on non-Windows: "
                        + destDirectory);
            }
        } else {
            if (isWindowsPath(destDirectory)) {
                logger.error(
                        "OS=Non-Windows and the assembly descriptor contains a Windows-specific directory reference"
                                + " (with a drive letter): " + destDirectory);
            } else if (isUnixRootReference(destDirectory)) {
                logger.warn("The assembly descriptor contains a *nix-specific root-relative reference"
                        + " (starting with slash). This is not portable and might fail on Windows: "
                        + destDirectory);
            }
        }
    }