/** * Use $${....} as escapes for ${....} */ public static String sysPropsEnvReplace( String source ) { String halfway = _mapReplace( source, propsMap() ); return envReplace( halfway ); }
/** * Use $${....} as escapes for ${....} */ public static String mapReplace( String source, Map<String,String> replacements ) { return _unescape( _mapReplace( source, replacements ) ); }
/** * Use $${....} as escapes for ${....} */ @SuppressWarnings("unchecked") public static String sysPropsReplace( String source ) { return mapReplace( source, propsMap() ); }
/** * Use $${....} as escapes for ${....} */ public static String envReplace( String source ) { return mapReplace( source, System.getenv() ); }
String substitutedPath = SystemUtils.sysPropsEnvReplace( resourcePath ); url = new URL( substitutedPath );