/** * Loads the properties from the given input stream */ protected void loadProperties(InputStream is) throws IOException { JellyContext theContext = getJellyContext(); Properties props = new Properties(); props.load(is); Enumeration propsEnum = props.propertyNames(); while (propsEnum.hasMoreElements()) { String key = (String) propsEnum.nextElement(); String value = props.getProperty(key); // @todo we should parse the value in case its an Expression theContext.setVariable(key, value); } } }
/** * Loads the properties from the given input stream */ protected void loadProperties(InputStream is) throws IOException { JellyContext theContext = getJellyContext(); Properties props = new Properties(); props.load(is); Enumeration propsEnum = props.propertyNames(); while (propsEnum.hasMoreElements()) { String key = (String) propsEnum.nextElement(); String value = props.getProperty(key); // @todo we should parse the value in case its an Expression theContext.setVariable(key, value); } } }
/** * Loads the properties from the given input stream */ protected void loadProperties(InputStream is) throws IOException { JellyContext theContext = getJellyContext(); Properties props = new Properties(); props.load(is); Enumeration propsEnum = props.propertyNames(); while (propsEnum.hasMoreElements()) { String key = (String) propsEnum.nextElement(); String value = props.getProperty(key); // @todo we should parse the value in case its an Expression theContext.setVariable(key, value); } } }
/** * Loads the properties from the given input stream */ protected void loadProperties(InputStream is) throws IOException { JellyContext theContext = getJellyContext(); Properties props = new Properties(); props.load(is); Enumeration propsEnum = props.propertyNames(); while (propsEnum.hasMoreElements()) { String key = (String) propsEnum.nextElement(); String value = props.getProperty(key); // @todo we should parse the value in case its an Expression theContext.setVariable(key, value); } } }
final JellyContext context = jelly.getJellyContext(); context.setVariable("args", args); context.setVariable("commandLine", cmdLine);
final JellyContext context = jelly.getJellyContext(); context.setVariable("args", args); context.setVariable("commandLine", cmdLine);
final JellyContext context = jelly.getJellyContext(); context.setVariable("args", args); context.setVariable("commandLine", cmdLine);
final JellyContext context = jelly.getJellyContext(); context.setVariable("args", args); context.setVariable("commandLine", cmdLine);
parser.setContext(getJellyContext()); } catch (MalformedURLException e) { throw new JellyException(e.toString());
parser.setContext(getJellyContext()); } catch (MalformedURLException e) { throw new JellyException(e.toString());
parser.setContext(getJellyContext()); } catch (MalformedURLException e) { throw new JellyException(e.toString());
parser.setContext(getJellyContext()); } catch (MalformedURLException e) { throw new JellyException(e.toString());