public String run() { return StringPropertyReplacer.replaceProperties(input); } });
public String run() { return StringPropertyReplacer.replaceProperties(input); } });
public void setInvokerURL(String invokerURL) { // Replace any system properties in the URL String tmp = StringPropertyReplacer.replaceProperties(invokerURL); this.invokerURL = tmp; log.debug("Set invokerURL to "+this.invokerURL); }
/** * Beside querying the element for its attribute value, it will look into the value, if any, and replace the * jboss properties(e.g. ${someValue:defaultValue}. * <p/> * {@link org.jboss.util.StringPropertyReplacer#replaceProperties(String)} */ protected String getAttributeValue(Element element, String attrName) { if (element == null || attrName == null) return null; String value = element.getAttribute(attrName); return value == null ? null : StringPropertyReplacer.replaceProperties(value); }
public void setInvokerURL(String invokerURL) { // Replace any system properties in the URL String tmp = StringPropertyReplacer.replaceProperties(invokerURL); this.invokerURL = tmp; log.debug("Set invokerURL to "+this.invokerURL); }
public void setScanPeriod(String ms) { if (ms != null) { //this.scanPeriod = ms; this.scanPeriod = Long.parseLong(StringPropertyReplacer.replaceProperties(ms)); } else { this.scanPeriod = 300000L; } }
public void setUserPluginDir(String dir) { if (dir == null) { return; } //this.userPluginDir = dir; this.userPluginDir = new File(StringPropertyReplacer.replaceProperties(dir)); }
protected String getValue(String name, String value) { if (value.startsWith("${") && value.endsWith("}")) { String replacement = StringPropertyReplacer.replaceProperties(value); if (replacement != null) value = replacement; } return value; } }
protected String getValue(String name, String value) { if (value.startsWith("${") && value.endsWith("}")) { String replacement = StringPropertyReplacer.replaceProperties(value); if (replacement != null) value = replacement; } return value; }
protected String getValue(String name, String value) { if (value.startsWith("${") && value.endsWith("}")) { String replacement = StringPropertyReplacer.replaceProperties(value); if (replacement != null) value = replacement; } return value; }
public ControlFlag getControlFlag(String flag) { ControlFlag controlFlag = null; if(flag != null) { flag = StringPropertyReplacer.replaceProperties(flag.trim()); controlFlag = this.controlFlags.get(flag.toUpperCase()); } if (controlFlag == null) controlFlag = ControlFlag.REQUIRED; return controlFlag; }
protected String getValue(String name, String value) { if (value.startsWith("${") && value.endsWith("}")) { String replacement = StringPropertyReplacer.replaceProperties(value); if (replacement != null) value = replacement; } return value; } }
private File getDistributionFileBitsLocalFilesystemFile(String distLabel, String fileName) { String filesystem = System.getProperty(FILESYSTEM_PROPERTY); if (filesystem == null) { throw new IllegalStateException("Server is misconfigured - missing system property '" + FILESYSTEM_PROPERTY + "'. Don't know where distribution bits are stored."); } // allow the configuration to use ${} system property replacement strings filesystem = StringPropertyReplacer.replaceProperties(filesystem); String loc = "dists/" + distLabel; File parentDir = new File(filesystem, loc); File distBitsFile = new File(parentDir, fileName); return distBitsFile; }
public void setValue(ModuleOption option, UnmarshallingContext navigator, String namespaceUri, String localName, String value) { if ("module-option".equals(localName)) { String valueWithReplacement = StringPropertyReplacer.replaceProperties(value.trim()); option.setValue(valueWithReplacement); if (trace) log.trace("setValue.ModuleOption, name: " + localName + ":valueWithReplacement:" + valueWithReplacement); } }
public void setServerPluginDir(String dir) { if (dir == null) { return; } //this.serverPluginScanner.setServerPluginDir(dir); this.serverPluginScanner.setServerPluginDir(new File(StringPropertyReplacer.replaceProperties(dir))); }
/** * {@inheritDoc} * @see org.xml.sax.helpers.XMLFilterImpl#characters(char[], int, int) */ @Override public void characters(char[] data, int start, int length) throws SAXException { char[] value = StringPropertyReplacer.replaceProperties(String.copyValueOf(data, start, length)).toCharArray(); super.characters(value, 0, value.length); }
protected String subst(String value) { if( value == null ) return null; try { return StringPropertyReplacer.replaceProperties(value); } catch (Exception e) { errorLog.error("Could not perform variable substitution.", e, ErrorManager.GENERIC_FAILURE); return value; } }
protected String subst(String value) { if( value == null ) return null; try { return StringPropertyReplacer.replaceProperties(value); } catch (Exception e) { errorLog.error("Could not perform variable substitution.", e, ErrorManager.GENERIC_FAILURE); return value; } }
public ASTAnnotation run() throws Exception { String expr; if (properties != null && properties.isEmpty() == false) expr = StringPropertyReplacer.replaceProperties(annotationExpr, properties); else if (replace != null && replace) expr = StringPropertyReplacer.replaceProperties(annotationExpr); else expr = annotationExpr; AnnotationParser parser = new AnnotationParser(new StringReader(expr)); ASTStart start = parser.Start(); return (ASTAnnotation)start.jjtGetChild(0); } });
public void setAgentPluginDir(String dir) { if (dir == null) { return; } //this.agentPluginScanner.getAgentPluginDeployer().setPluginDir(dir); this.agentPluginScanner.getAgentPluginDeployer().setPluginDir( new File(StringPropertyReplacer.replaceProperties(dir))); }