List of usage examples for com.jgoodies.common.base Strings isNotEmpty
public static boolean isNotEmpty(String str)
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())); } }