Examples of run()


Examples of com.redhat.ceylon.compiler.CeylonCompileTool.run()

        ToolModel<CeylonCompileTool> model = pluginLoader.loadToolModel("compile");
        Assert.assertNotNull(model);
        CeylonCompileTool tool = pluginFactory.bindArguments(model,
                options("--src=test/src", "com.redhat.ceylon.tools.test.bug1183"));
        try {
            tool.run();
            Assert.fail("Tool should have thrown an exception");
        } catch (CompilerErrorException e) {
            // We expect this, not a FatalToolError
        }
       
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.runtime.tools.Runner.run()

        options.addUserRepository("flat:"+FlatRepoLib);
        options.addUserRepository(OutputRepository);
        options.addExtraModule("modules.extra", "1");

        Runner runner = CeylonToolProvider.getRunner(Backend.JavaScript, options, "modules.hello", "1");
        runner.run();
        runner.cleanup();
    }

    @Test
    public void testJavaRunner() throws Exception{
View Full Code Here

Examples of com.redhat.ceylon.compiler.js.CeylonCompileJsTool.run()

            // make the tool shut the hell up
            tool.setOut(new NullWriter());
        }

        try {
            tool.run();
        } catch (CompilerErrorException e) {
            return false;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of com.redhat.ceylon.tools.classpath.CeylonClasspathTool.run()

        cpTool.setSystemRepository("../ceylon-dist/dist/repo");
        cpTool.setNoDefRepos(true);
        cpTool.setOffline(true);
        StringBuilder sb = new StringBuilder();
        cpTool.setOut(sb);
        cpTool.run();

        String classpath = sb.toString();
       
        ProcessBuilder processBuilder =
                new ProcessBuilder(path, "-cp",
View Full Code Here

Examples of com.redhat.ceylon.tools.importjar.CeylonImportJarTool.run()

    public void testSimpleModuleVersionJar() throws IOException {
        FileUtil.delete(destFile("importtest"));
        ToolModel<CeylonImportJarTool> model = pluginLoader.loadToolModel("import-jar");
        Assert.assertNotNull(model);
        CeylonImportJarTool tool = pluginFactory.bindArguments(model, options("--force", "importtest/1.0", "test/src/com/redhat/ceylon/tools/test/test.jar"));
        tool.run();
        File f1 = destFile("importtest/1.0/importtest-1.0.jar");
        File f2 = destFile("importtest/1.0/importtest-1.0.jar.sha1");
        Assert.assertTrue(f1.exists() && f2.exists());
    }
   
View Full Code Here

Examples of com.redhat.ceylon.tools.src.CeylonSrcTool.run()

        CeylonSrcTool tool = pluginFactory.bindArguments(model, Arrays.<String>asList(
                "--cacherep", getCachePath(),
                "--rep", getOutPath(),
                "--src", "build/test-source",
                "com.redhat.ceylon.tools.test.test_mod_source.src_tool_test/1.0.0"));
        tool.run();
       
        String path = "build/test-source/com/redhat/ceylon/tools/test/test_mod_source/src_tool_test";
        File dir = new File(path);
        Assert.assertTrue(dir.isDirectory());
        File moduleFile = new File(dir, "module.ceylon");
View Full Code Here

Examples of com.rubyeventmachine.EmReactor.run()

  @Test
  public final void testOneShort() throws IOException {
    EmReactor em = new ShortTimer();
    em.installOneshotTimer(1050);
    em.run();
  }
 

}
View Full Code Here

Examples of com.salesforce.ide.ui.actions.RefreshResourceAction.run()

                                            Messages.PackageManifestChangeListener_dialog_title, NLS.bind(
                                                Messages.PackageManifestChangeListener_dialog_message, resource
                                                        .getFullPath(), project.getName()))) {
                                            RefreshResourceAction action = new RefreshResourceAction();
                                            action.selectionChanged(null, new StructuredSelection(project));
                                            action.run(null);
                                        }
                                    }

                                } catch (ForceProjectException e) {
                                    logger.warn("An error occured while refreshing " + project.getName() + ": "
View Full Code Here

Examples of com.saxonica.deploy.CompiledUserQuery.run()

                            dqc.setContextItem(doc);
                            File out = new File("e:/javalib/xmark/output/q" + q + ".out");
                            //out.mkdirs();
                            OutputStream os = new FileOutputStream(out);
                            Result result = new StreamResult(os);
                            cuq.run(result, props);
                            os.close();
                            compare(new File("e:/javalib/xmark/output/q" + q + ".out"),
                                    new File("e:/javalib/xmark/gold1m/q" + q + ".out"));
                        }
                        for (int t=0; t<1000; t++) {
View Full Code Here

Examples of com.sencha.gxt.fx.client.animation.Fx.run()

        @Override
        public void onAfterAnimate(AfterAnimateEvent event) {
          afterExpand();
        }
      });
      fx.run(new SlideIn(getAppearance().getBodyWrap(getElement()), Direction.DOWN));

      // Disable toggle tool during animated expand
      if (collapseBtn != null) {
        collapseBtn.disable();
      }
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.