Examples of Environment


Examples of com.cloudbees.clickstack.domain.environment.Environment

        int appPort = getOptionAsInt("app_port", args);
        Path genappDir = appDir.resolve(".genapp");
        Path controlDir = getOptionAsPath("control_dir", args, genappDir.resolve("control"));
        Path logDir = getOptionAsPath("log_dir", args, genappDir.resolve("log"));

        return new Environment(
                appDir, clickstackDir, packageDir, appUser, appId, appPort, controlDir, logDir
        );
    }
View Full Code Here

Examples of com.dotcms.publisher.environment.bean.Environment

            return;
          }

          String name = request.getParameter("environmentName");

          Environment existingEnv = APILocator.getEnvironmentAPI().findEnvironmentByName(name);

          if(existingEnv!=null) {
            Logger.info(getClass(), "Can't save Environment. An Environment with the given name already exists. ");
            User user = getUser();
          response.getWriter().println("FAILURE: " + LanguageUtil.get(user, "publisher_Environment_name_exists"));
          return;
          }

          String whoCanUseTmp = request.getParameter("whoCanUse");

          Environment environment = new Environment();
          environment.setName(name);
          environment.setPushToAll("pushToAll".equals(request.getParameter("pushType")));

          List<String> whoCanUse = Arrays.asList(whoCanUseTmp.split(","));
          List<Permission> permissions = new ArrayList<Permission>();

      for (String perm : whoCanUse) {
        if(!UtilMethods.isSet(perm)){
          continue;
        }

        Role test = resolveRole(perm);
        Permission p = new Permission(environment.getId(), test.getId(), PermissionAPI.PERMISSION_USE);

        boolean exists=false;
        for(Permission curr : permissions)
            exists=exists || curr.getRoleId().equals(p.getRoleId());
View Full Code Here

Examples of com.elega9t.commons.shell.Environment

        super("set");
    }

    @Override
    public int execute(Shell shell) {
        Environment environment = shell.getEnvironment();
        for (String propertyName: environment.getPropertyNames()) {
            shell.outln(propertyName + "=" + environment.getValue(propertyName));
        }
        return 0;
    }
View Full Code Here

Examples of com.google.appengine.tck.env.Environment

        Set<Environment> set = new HashSet<>(Arrays.asList(supported));
        assumeEnvironment(set);
    }

    private void assumeEnvironment(Set<Environment> supported) {
        final Environment environment = getEnvironment();
        Assume.assumeTrue(String.format("Unsupported environment: %s [%s]", environment, supported), supported.contains(environment));
    }
View Full Code Here

Examples of com.google.apphosting.api.ApiProxy.Environment

    assertEquals(a.getMostRecentUpdateMillis(), b.getMostRecentUpdateMillis());
  }

  private SettableFuture<Void> runInNewThread(final TaskStateInfo taskFromQueue)
      throws InterruptedException {
    final Environment environment = ApiProxy.getCurrentEnvironment();
    final SettableFuture<Void> settableFuture = SettableFuture.create();
    Thread t = new Thread(new Runnable() {
      @Override
      public void run() {
        try {
View Full Code Here

Examples of com.google.caliper.Environment

    /**
     * Make new result from run.
     */
    public static Result newResult(final Run run) {
        final Environment env = new EnvironmentGetter().getEnvironmentSnapshot();
        return new Result(run, env);
    }
View Full Code Here

Examples of com.google.checkout.sdk.commands.Environment

  protected Environment environment;

  @Override
  protected void setUp() throws Exception {
    environment = new Environment(
        "http://cartPost.example.net/%s",
        "http://postPurchase.example.net/%s",
        "http://reportsUrl/%s");
    boolean shouldSignCarts = false;
  }
View Full Code Here

Examples of com.griddynamics.genesis.tools.environments.Environment

    }

    public Integer getEnvironmentId(Integer projectId, final String envName) {
        String json = get(String.format(GET_ENVS_URL, projectId)).asString();
        Collection<Environment> environments = new Gson().fromJson(json, new TypeToken<Collection<Environment>>(){}.getType());
        Environment env = (Environment) CollectionUtils.find(environments, new Predicate() {
            @Override
            public boolean evaluate(Object o) {
                return ((Environment) o).getName().equals(envName);
            }
        });
        return env == null ? null : env.getId();
    }
View Full Code Here

Examples of com.jigen.ant.Environment

    return antProduct;
  }

  private Environment importEnvironment(com.jigen.xsd.Environment environment)
  {
    Environment antEnvironment = new Environment();
   
    antEnvironment.setAddToPath   (environment.isSetAddtopath() && environment.getAddtopath());
    antEnvironment.setRequiredJava(environment.getRequiredjava());
   
    return antEnvironment;
  }
View Full Code Here

Examples of com.jigen.xsd.Environment

    javaVersionField .setText    (environment.getRequiredjava());
  }

  public Environment getJigenEnvironment()
  {
    Environment environment = Environment.Factory.newInstance();
   
    environment.setAddtopath(addToPathCheckbox.isSelected());
    environment.setRequiredjava(javaVersionField.getText());
   
    return environment;
  }
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.