Examples of ScriptLoader


Examples of com.rescripter.resources.ScriptLoader

  private Mockery context = new Mockery();
 
  @Test public void
  delegates_to_pushed_loader() throws IOException, CoreException {
    ScriptStack stack = new ScriptStack();
    final ScriptLoader loader = context.mock(ScriptLoader.class);
    final String filename = "foo.rs";
   
    context.checking(new Expectations() {{
      oneOf(loader).file(filename);
    }});
View Full Code Here

Examples of com.rescripter.resources.ScriptLoader

  }
 
  @Test public void
  pushes_and_pops_loaders() throws IOException, CoreException {
    ScriptStack stack = new ScriptStack();
    final ScriptLoader loader1 = context.mock(ScriptLoader.class, "loader1");
    final ScriptLoader loader2 = context.mock(ScriptLoader.class, "loader2");
    final Sequence sequence = context.sequence("loaderSequence");
    final String filename = "foo.rs";
   
    context.checking(new Expectations() {{
      oneOf(loader1).file(filename); inSequence(sequence);
View Full Code Here

Examples of com.subgraph.vega.impl.scanner.modules.scripting.ScriptLoader

  private Bundle bundle;
  private IWorkspace currentWorkspace;

  void activate(BundleContext context) {
    this.bundle = context.getBundle();
    scriptLoader = new ScriptLoader(getScriptDirectory());
    scriptLoader.reloadModules();
    currentWorkspace = model.addWorkspaceListener(new IEventHandler() {
      @Override
      public void handleEvent(IEvent event) {
        if(event instanceof WorkspaceOpenEvent)
View Full Code Here

Examples of hudson.cli.util.ScriptLoader

        if(script==null)
            throw new CmdLineException(null, "No script is specified");
        if (script.equals("="))
            return IOUtils.toString(stdin);

        return checkChannel().call(new ScriptLoader(script));
    }
View Full Code Here

Examples of org.latte.scripting.ScriptLoader

  private static final Logger LOG = Logger.getLogger(LatteServlet.class.getName());
  final private Scriptable parent;
  private Callable fn;

  public LatteServlet() throws Exception {
    ScriptLoader loader = new ScriptLoader();
    this.parent = loader.getRoot();

    loader.register("httpserver", new Callable() {
      public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] params) {
        fn = (Callable)params[1]
        return null;
      }
    });

    ((Javascript)loader.get("init.js")).eval(null);
  }
View Full Code Here

Examples of org.latte.scripting.ScriptLoader

    else {
      System.err.println("usage: org.latte.Run script [args]");
      System.exit(-1);
    }

    ScriptLoader loader  = new ScriptLoader();
    loader.register("httpserver", new HTTPServer())

    ((Javascript)loader.get(script)).eval(null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.