Skip to content
Snippets Groups Projects
Commit b57b3c86 authored by brinn's avatar brinn
Browse files

Fix support for DataCompletedScripts which are batch files (on Windows).

SVN: 26091
parent d8fe98a2
No related merge requests found
...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.datamover.utils; ...@@ -18,6 +18,7 @@ package ch.systemsx.cisd.datamover.utils;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import org.apache.log4j.Level; import org.apache.log4j.Level;
...@@ -104,7 +105,7 @@ public class DataCompletedFilter implements IStoreItemFilter ...@@ -104,7 +105,7 @@ public class DataCompletedFilter implements IStoreItemFilter
{ {
if (path.endsWith(".bat")) if (path.endsWith(".bat"))
{ {
command.add("cmd"); command.addAll(Arrays.asList("cmd", "/c"));
} else // Assume we have Cygwin's shell. } else // Assume we have Cygwin's shell.
{ {
command.add("sh"); command.add("sh");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment