#4 modify if statement.

This commit is contained in:
Shinsuke Sugaya 2013-09-29 22:18:14 +09:00
parent a93746f521
commit 6d33d0415f

View file

@ -246,15 +246,15 @@ public class SystemHelper implements Serializable {
crawlerCmdList.add("--name");
crawlerCmdList.add(Constants.CRAWLING_SESSION_SYSTEM_NAME);
if (webConfigIds != null) {
if (webConfigIds != null && webConfigIds.length > 0) {
crawlerCmdList.add("-w");
crawlerCmdList.add(StringUtils.join(webConfigIds, ','));
}
if (webConfigIds != null) {
if (fileConfigIds != null && fileConfigIds.length > 0) {
crawlerCmdList.add("-f");
crawlerCmdList.add(StringUtils.join(fileConfigIds, ','));
}
if (webConfigIds != null) {
if (dataConfigIds != null && dataConfigIds.length > 0) {
crawlerCmdList.add("-d");
crawlerCmdList.add(StringUtils.join(dataConfigIds, ','));
}