|
|
@@ -73,6 +73,7 @@ public class ExecuteOn extends ExecTask { |
|
|
|
private boolean parallel = false; |
|
|
|
protected String type = "file"; |
|
|
|
protected Commandline.Marker srcFilePos = null; |
|
|
|
private boolean skipEmpty = false; |
|
|
|
|
|
|
|
/** |
|
|
|
* Adds a set of files (nested fileset attribute). |
|
|
@@ -95,6 +96,13 @@ public class ExecuteOn extends ExecTask { |
|
|
|
this.type = type.getValue(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Should empty filesets be ignored? |
|
|
|
*/ |
|
|
|
public void setSkipEmptyFilesets(boolean skip) { |
|
|
|
skipEmpty = skip; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Marker that indicates where the name of the source file should |
|
|
|
* be put on the command line. |
|
|
@@ -138,6 +146,12 @@ public class ExecuteOn extends ExecTask { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (v.size() == 0 && skipEmpty) { |
|
|
|
log("Skipping fileset for directory " |
|
|
|
+ base + ". It is empty.", Project.MSG_INFO); |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
String[] s = new String[v.size()]; |
|
|
|
v.copyInto(s); |
|
|
|
|
|
|
|