#4 modify if statement.
This commit is contained in:
parent
a93746f521
commit
6d33d0415f
1 changed files with 3 additions and 3 deletions
|
@ -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, ','));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue