/** * Recursively expands any environment variable(s) defined within a String. * If expansion is not possible, the original string will be returned. * * * @param s a string possibly containing one or more environment variables * @return The input string with all environment variables expanded */ public static String expandVariables(final String s) { return expandVariables(s, true); }
/** * Recursively expands any environment variable(s) defined within a String. * If expansion is not possible, the original string will be returned. * * * @param s a string possibly containing one or more environment variables * @return The input string with all environment variables expanded */ public static String expandVariables(final String s) { return expandVariables(s, true); }
/** * Recursively expands any environment variable(s) defined within a String. * If expansion is not possible, the original string will be returned. * * * @param s a string possibly containing one or more environment variables * @return The input string with all environment variables expanded */ public static String expandVariables(final String s) { return expandVariables(s, true); }
(recursive ? expandVariables(variableValue, true) : variableValue).replace("\\", "\\\\") );
(recursive ? expandVariables(variableValue, true) : variableValue).replace("\\", "\\\\") );
(recursive ? expandVariables(variableValue, true) : variableValue).replace("\\", "\\\\") );