Tabnine Logo
Jelly.getJellyContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getJellyContext
method
in
org.apache.commons.jelly.Jelly

Best Java code snippets using org.apache.commons.jelly.Jelly.getJellyContext (Showing top 12 results out of 315)

origin: commons-jelly/commons-jelly

  /**
   * 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);
    }
  }
}
origin: org.jenkins-ci/commons-jelly

  /**
   * 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);
    }
  }
}
origin: org.jvnet.hudson/commons-jelly

  /**
   * 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);
    }
  }
}
origin: org.hudsonci.stapler/commons-jelly

  /**
   * 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);
    }
  }
}
origin: org.jvnet.hudson/commons-jelly

final JellyContext context = jelly.getJellyContext();
context.setVariable("args", args);
context.setVariable("commandLine", cmdLine);
origin: commons-jelly/commons-jelly

final JellyContext context = jelly.getJellyContext();
context.setVariable("args", args);
context.setVariable("commandLine", cmdLine);
origin: org.hudsonci.stapler/commons-jelly

final JellyContext context = jelly.getJellyContext();
context.setVariable("args", args);
context.setVariable("commandLine", cmdLine);
origin: org.jenkins-ci/commons-jelly

final JellyContext context = jelly.getJellyContext();
context.setVariable("args", args);
context.setVariable("commandLine", cmdLine);
origin: org.jenkins-ci/commons-jelly

  parser.setContext(getJellyContext());
} catch (MalformedURLException e) {
  throw new JellyException(e.toString());
origin: commons-jelly/commons-jelly

  parser.setContext(getJellyContext());
} catch (MalformedURLException e) {
  throw new JellyException(e.toString());
origin: org.jvnet.hudson/commons-jelly

  parser.setContext(getJellyContext());
} catch (MalformedURLException e) {
  throw new JellyException(e.toString());
origin: org.hudsonci.stapler/commons-jelly

  parser.setContext(getJellyContext());
} catch (MalformedURLException e) {
  throw new JellyException(e.toString());
org.apache.commons.jellyJellygetJellyContext

Javadoc

The context to use

Popular methods of Jelly

  • <init>
  • compileScript
    Compiles the script
  • setScript
    Sets the script URL to use as an absolute URL or a relative filename
  • setUrl
    Sets the script URL to use
  • getJellyBuildDate
  • getJellyVersion
  • getRootContext
    Gets the root context
  • getUrl
  • loadJellyProperties
    Attempts to load jelly.properties from the current directory, the users home directory or from the c
  • loadProperties
    Loads the properties from the given input stream
  • readBuildTimestampResource
  • resolveURL
  • readBuildTimestampResource,
  • resolveURL,
  • setDefaultNamespaceURI,
  • setValidateXML

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now