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

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

Introduction

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

Prototype

public static boolean isBlank(String str) 

Source Link

Document

Checks if the given string is whitespace, empty ("") or null .

Usage

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

License:Open Source License

private void addFlags(GeneralCommandLine commandLine, ExecutionEnvironment env) {
    if (GaugeVersion.isGreaterOrEqual(TEST_RUNNER_SUPPORT_VERSION, true)
            && GaugeSettingsService.getSettings().useIntelliJTestRunner()) {
        commandLine.addParameter(Constants.RUN);
        commandLine.addParameter(Constants.MACHINE_READABLE);
        commandLine.addParameter(Constants.HIDE_SUGGESTION);
    }/*from  ww w. j  av  a  2 s  .c  o m*/
    commandLine.addParameter(Constants.SIMPLE_CONSOLE);
    if (!Strings.isBlank(tags)) {
        commandLine.addParameter(Constants.TAGS);
        commandLine.addParameter(tags);
    }
    if (!Strings.isBlank(environment)) {
        commandLine.addParameters(Constants.ENV_FLAG, environment);
    }
    addTableRowsRangeFlags(commandLine);
    addParallelExecFlags(commandLine, env);
    addProgramArguments(commandLine);
    addProjectClasspath(commandLine);
    if (!Strings.isBlank(specsToExecute)) {
        addSpecs(commandLine, specsToExecute);
    }
}

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

License:Open Source License

private void addTableRowsRangeFlags(GeneralCommandLine commandLine) {
    if (!Strings.isBlank(rowsRange)) {
        commandLine.addParameter(Constants.TABLE_ROWS);
        commandLine.addParameter(rowsRange);
    }// w  ww .  j  av a2 s.co m
}