/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
String recursiveReplacement = substVars(replacement, props); sbuf.append(recursiveReplacement);
protected String subst(String value) { try { return OptionConverter.substVars(value, props); } catch(IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) { return null; } try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
String recursiveReplacement = substVars(replacement, props); sbuf.append(recursiveReplacement);
String recursiveReplacement = substVars(replacement, props); sbuf.append(recursiveReplacement);
@Override protected void setParameter(Element elem, PropertySetter propSetter) { String paramName = OptionConverter.substVars(elem.getAttribute("name"), properties); String value = elem.getAttribute("value"); value = OptionConverter.substVars(OptionConverter.convertSpecialChars(value), properties); propSetter.setProperty(paramName, value); } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** Find the value corresponding to <code>key</code> in <code>props</code>. Then perform variable substitution on the found value. */ public static String findAndSubst(String key, Properties props) { String value = props.getProperty(key); if(value == null) return null; try { return substVars(value, props); } catch(IllegalArgumentException e) { LogLog.error("Bad option value ["+value+"].", e); return value; } }
/** * Substitutes property value for any references in expression. * * @param value value from configuration file, may contain * literal text, property references or both * @param props properties. * @return evaluated expression, may still contain expressions * if unable to expand. * @since 1.2.15 */ public static String subst(final String value, final Properties props) { try { return OptionConverter.substVars(value, props); } catch (IllegalArgumentException e) { LogLog.warn("Could not perform variable substitution.", e); return value; } }