Example usage for com.jgoodies.common.base Strings isNotEmpty

List of usage examples for com.jgoodies.common.base Strings isNotEmpty

Introduction

In this page you can find the example usage for com.jgoodies.common.base Strings isNotEmpty.

Prototype

public static boolean isNotEmpty(String str) 

Source Link

Document

Checks if the given string is not empty ("") and not null .

Usage

From source file:com.thoughtworks.gauge.execution.GaugeRunConfiguration.java

License:Open Source License

private void addProgramArguments(GeneralCommandLine commandLine) {
    if (programParameters == null) {
        return;//www .  j  av a2  s .c  o  m
    }
    String parameters = programParameters.getProgramParameters();
    if (!Strings.isEmpty(parameters)) {
        commandLine.addParameters(programParameters.getProgramParameters().split(" "));
    }
    Map<String, String> envs = programParameters.getEnvs();
    if (!envs.isEmpty()) {
        commandLine.withEnvironment(envs);
    }
    if (Strings.isNotEmpty(programParameters.getWorkingDirectory())) {
        commandLine.setWorkDirectory(new File(programParameters.getWorkingDirectory()));
    }
}