Examples of environment()


Examples of com.lmax.ant.paralleljunit.util.process.DelegatingProcessBuilder.environment()

                throw new BuildException("Failed to create worker directory: " + workingDirectory.getPath());
            }
            processBuilder.directory(workingDirectory);
        }

        final Map<String, String> environment = processBuilder.environment();

        if (config.isNewEnvironment())
        {
            environment.clear();
        }
View Full Code Here

Examples of com.porterhead.rest.mock.AppMockConfiguration.environment()

    public void setUpMocks() {
        AppMockConfiguration config = appCtx.getBean(AppMockConfiguration.class);
        userService = config.userService();
        verificationTokenService = config.verificationTokenService();
        connectionFactoryLocator = (ConnectionFactoryLocator) appCtx.getBean("connectionFactoryLocator");
        environment = config.environment();
        emailServicesGateway = config.emailServicesGateway();
    }

    protected CreateUserRequest createSignupRequest() {
        return new CreateUserRequest(ExternalUserBuilder.create().withEmailAddress(TEST_USER.getEmailAddress())
View Full Code Here

Examples of java.util.UUID.environment()

                                return null;
                            }
                            // Add special case for creating null worlds.
                            // Not sure I like doing it this way, but this is a special case
                            if (arg.name().equalsIgnoreCase("nullworld")) {
                                return MockWorldFactory.makeNewNullMockWorld(arg.name(), arg.environment(), arg.type());
                            }
                            return MockWorldFactory.makeNewMockWorld(arg.name(), arg.environment(), arg.type());
                        }
                    });
View Full Code Here

Examples of java.util.UUID.environment()

                            // Add special case for creating null worlds.
                            // Not sure I like doing it this way, but this is a special case
                            if (arg.name().equalsIgnoreCase("nullworld")) {
                                return MockWorldFactory.makeNewNullMockWorld(arg.name(), arg.environment(), arg.type());
                            }
                            return MockWorldFactory.makeNewMockWorld(arg.name(), arg.environment(), arg.type());
                        }
                    });

            when(mockServer.unloadWorld(anyString(), anyBoolean())).thenReturn(true);
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

     
      // if neither then create/build it!
      WorldCreator worldcreator = new WorldCreator(DEFAULT_WORLD_NAME);
      //worldcreator.seed(-7457540200860308014L); // Beta seed
      //worldcreator.seed(5509442565638151977L); // 82,-35
      worldcreator.environment(environment);
      worldcreator.generator(new WorldGenerator(plugin, DEFAULT_WORLD_NAME, style.toString()));
      cityWorldPrime = Bukkit.getServer().createWorld(worldcreator);
    }
    return cityWorldPrime;
  }
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

                                return null;
                            }
                            // Add special case for creating null worlds.
                            // Not sure I like doing it this way, but this is a special case
                            if (arg.name().equalsIgnoreCase("nullworld")) {
                                return MockWorldFactory.makeNewNullMockWorld(arg.name(), arg.environment(), arg.type());
                            }
                            return MockWorldFactory.makeNewMockWorld(arg.name(), arg.environment(), arg.type());
                        }
                    });
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

                            // Add special case for creating null worlds.
                            // Not sure I like doing it this way, but this is a special case
                            if (arg.name().equalsIgnoreCase("nullworld")) {
                                return MockWorldFactory.makeNewNullMockWorld(arg.name(), arg.environment(), arg.type());
                            }
                            return MockWorldFactory.makeNewMockWorld(arg.name(), arg.environment(), arg.type());
                        }
                    });

            when(mockServer.unloadWorld(anyString(), anyBoolean())).thenReturn(true);
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

        Logging.fine("Copied lots of settings");

        boolean useSpawnAdjust = this.getMVWorld(oldName).getAdjustSpawn();
        Logging.fine("Copied more settings");

        Environment environment = worldCreator.environment();
        Logging.fine("Copied most settings");
        if (newWorldFile.exists()) {
            Logging.fine("Succeeded at copying stuff");
            if (this.addWorld(newName, environment, null, null, null, generator, useSpawnAdjust)) {
                // getMVWorld() doesn't actually return an MVWorld
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

        // TODO: Use the fancy kind with the commandSender
        if (generator != null && generator.length() != 0) {
            c.generator(generator);
        }
        c.environment(env);
        if (type != null) {
            c.type(type);
        }
        if (generateStructures != null) {
            c.generateStructures(generateStructures);
View Full Code Here

Examples of org.bukkit.WorldCreator.environment()

            throw new IllegalArgumentException("That world doesn't exist!");

        final WorldProperties world = worldsFromTheConfig.get(name);
        final WorldCreator creator = WorldCreator.name(name);

        creator.environment(world.getEnvironment()).seed(world.getSeed());
        if (type != null) {
            creator.type(type);
        }

        boolean generatorSuccess = true;
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.