Examples of Console


Examples of org.jclouds.glesys.domain.Console

                       .addHeader("Authorization", "Basic aWRlbnRpdHk6Y3JlZGVudGlhbA==")
                       .addFormParam("serverid", "server322").build(),
            HttpResponse.builder().statusCode(200).payload(payloadFromResource("/server_console.json")).build())
            .getServerApi();

      Console expected = Console.builder().host("79.99.2.147").port(59478).password("1476897311").protocol("vnc").build();

      assertEquals(api.getConsole("server322"), expected);
   }
View Full Code Here

Examples of org.jclouds.openstack.nova.v2_0.domain.Console

         }

         ConsolesApi api = apiOption.get();
         ServerApi serverApi = this.api.getServerApiForZone(zoneId);
         Server server = createServerInZone(zoneId);
         Console console = api.getConsole(server.getId(), consoleType);
         assertNotNull(console.getType());
         assertTrue(consoleType.equals(console.getType()));
         assertNotNull(console.getUrl());
         assertTrue(console.getUrl().toString().startsWith("http"));
         serverApi.delete(server.getId());
      }
   }
View Full Code Here

Examples of org.jnode.driver.console.Console

     * Gets the console that "hosts" the current thread.
     *
     * @return Console
     */
    public Console getContextConsole() {
        Console c = contextConsole.get();
        if (c == null) {
            c = getFocus();
            contextConsole.set(c);
        }
        return c;
View Full Code Here

Examples of org.jooq.debug.console.Console

                    }
                };

                try {
                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                    Console console = new Console(descriptor, true);
                    console.setLoggingActive(true);
                    console.setVisible(true);
                }
                catch (Exception ignore) {}
            }
        }
View Full Code Here

Examples of org.moxie.console.Console

  }

  @Override
  public void execute() {
    Build build = (Build) getProject().getReference(Key.build.referenceId());
    Console console = build.getConsole();

    if (!configured) {
      // called from moxie.compile
      configure(build);
    }

    if (scope == null) {
      scope = Scope.defaultScope;
    }

    if (builds == null) {
      // top-level mx:javac instantiates the build stack
      builds = new HashSet<Build>();
    }

    if (compileLinkedProjects) {
      for (Build linkedProject: build.getSolver().getLinkedModules()) {
        if (builds.contains(linkedProject)) {
          // already built, skip
          console.debug(1, "skipping {0}, already compiled", linkedProject.getPom().getManagementId());
          continue;
        }
        // add the build to the stack so we do not rebuild
        builds.add(linkedProject);

        try {
          // compile the linked project
          Project project = new Project();
          project.setBaseDir(linkedProject.getConfig().getProjectDirectory());
          project.addReference(Key.build.referenceId(), linkedProject);

          MxJavac subCompile = new MxJavac(builds);
          subCompile.setProject(project);
          subCompile.setShowtitle(false);
          subCompile.perform();
        } catch (Exception e) {
          console.error(e);
          throw new MoxieException(e);
        }
      }
    }

    if (isShowTitle()) {
      console.title(getClass(), build.getPom().getCoordinates() + ", " + scope.name());
    }

    console.debug("mxjavac configuration");

    // display specified mxjavac attributes
    MaxmlMap attributes = build.getConfig().getTaskAttributes(getTaskName());
    AttributeReflector.logAttributes(this, attributes, console);

    // project folder
    console.debug(1, "projectdir = {0}", build.getConfig().getProjectDirectory());

    // create sourcepath
    Path sources = createSrc();
    for (File file : build.getConfig().getSourceDirectories(scope, tag)) {
      PathElement element = sources.createPathElement();
      element.setLocation(file);
    }
    console.debug(1, "sources = {0}", sources);

    // set output folder
    setDestdir(build.getConfig().getOutputDirectory(scope));
    console.debug(1, "destdir = {0}", getDestdir());

    // create classpath
    Path classpath = createClasspath();
    if (Scope.test.equals(scope)) {
      // add the compile output folder
      PathElement element = classpath.createPathElement();
      element.setLocation(build.getConfig().getOutputDirectory(Scope.compile));
    }
    for (File file : build.getSolver().getClasspath(scope)) {
      PathElement element = classpath.createPathElement();
      element.setLocation(file);
    }
    for (Build subbuild : build.getSolver().getLinkedModules()) {
      PathElement element = classpath.createPathElement();
      element.setLocation(subbuild.getConfig().getOutputDirectory(Scope.compile));
    }
    console.debug(1, "classpath = {0}", classpath);

    for (SourceDirectory sd : build.getConfig().getSourceDirectories()) {
      // clean apt source directories before compiling
      if (sd.apt) {
        console.log("Cleaning apt source directory {0}", sd.name);
        FileUtils.delete(sd.getSources());
        sd.getSources().mkdirs();
      }
    }

    if (clean) {
      // clean the output folder before compiling
      console.log("Cleaning output directory {0}", getDestdir().getAbsolutePath());
      FileUtils.delete(getDestdir());
    }

    getDestdir().mkdirs();

    // set the update property name so we know if nothing compiled
    String prop = build.getPom().getCoordinates().replace(':', '.') + ".compiled";
    setUpdatedProperty(prop);
    super.execute();
    if (getProject().getProperty(prop) == null) {
      console.log(1, "compiled classes are up-to-date");
    }

    Copy copy = new Copy();
    copy.setTaskName(getTaskName());
    copy.setProject(getProject());
    copy.setTodir(getDestdir());
    copy.setVerbose(getVerbose());

    if (getVerbose()) {
      console.log("copying resources => {0}", getDestdir());
    }

    if (excludes == null) {
      // default exclusions
      excludes = Toolkit.DEFAULT_CODE_EXCLUDES;
    }

    for (String path : getSrcdir().list()) {
      File file = new File(path);
      if (file.isDirectory()) {
        FileSet set = prepareResourceSet(file);
        copy.addFileset(set);
        if (getVerbose()) {
          console.log("adding resource path {0}", path);
        }
      }
    }

    copy.execute();
View Full Code Here

Examples of org.openhab.io.console.Console

      return null;
    }

    List<String> argsList = new ArrayList<String>();
    argsList.add(arg);
    Console console = new OSGiConsole(interpreter);
   
    while(true) {
      String narg = interpreter.nextArgument();
      if(!StringUtils.isEmpty(narg)) {
        argsList.add(narg);
View Full Code Here

Examples of org.persvr.util.Console

    Job upgrade = new Upgrade();
    upgrade.execute();
    log.info("Persevere v" + Persevere.getPersevereVersion() + " Started");
    if(startConsole){
      new Console().start();
    }
    config.getServletContext().setAttribute("testrunner", new TestRunner());
    Runtime.getRuntime().addShutdownHook(new Thread() {
      @Override
      public void run() {
View Full Code Here

Examples of org.rhq.server.control.command.Console

        registerCommand(new Install());
        registerCommand(new Start());
        registerCommand(new Stop());
        registerCommand(new Restart());
        registerCommand(new Status());
        registerCommand(new Console());
        // Add the service removal command only on windows
        if (File.separatorChar == '\\') {
            registerCommand(new Remove());
        }
        registerCommand(new Upgrade());
View Full Code Here

Examples of org.sgx.yuigwt.yui.console.Console

  AUI.Use(new String[]{"aui-color-picker", "console"}, new AUICallback() {
   
    @Override
    public void ready(AuiContext Y) {
     
      final Console console = Y.newConsole().render().cast();
     
      //TODO: parent.getDomNode not supported in aui
      Y.one("#"+parent.get("id")).append(
        "<div id=\"demo\"></div>" +
        "<div id=\"color\"></div>");
     
      colorPiker1 = Y.newColorPicker(ColorPickerConfig.create().after(ColorPicker.EVENT_COLORCHANGE, new EventCallback<EventFacade>() {

        @Override
        public void call(EventFacade e) {
          console.log(colorPiker1.get("hex"));
        }
      }));
      colorPiker1.render("#demo");
//      button1.render(parent);
    }
View Full Code Here

Examples of org.vaadin.console.Console

   * Builds the Console
   * @param NULL
   */
  public int buildKonsole()
  {
    console = new Console();
    console.setPs("~$ ");
    console.setRows(20);
    console.setCols(70);
    console.setGreeting("Welcome to Decisia Konsole\nType 'help' for more information");
    console.focus();
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.