|
@@ -71,6 +71,7 @@ public class ExecuteOn extends ExecTask { |
|
|
private int maxParallel = -1; |
|
|
private int maxParallel = -1; |
|
|
private boolean addSourceFile = true; |
|
|
private boolean addSourceFile = true; |
|
|
private boolean verbose = false; |
|
|
private boolean verbose = false; |
|
|
|
|
|
private boolean ignoreMissing = true; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Has <srcfile> been specified before <targetfile> |
|
|
* Has <srcfile> been specified before <targetfile> |
|
@@ -182,6 +183,15 @@ public class ExecuteOn extends ExecTask { |
|
|
verbose = b; |
|
|
verbose = b; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Whether to ignore nonexistent files from filelists. |
|
|
|
|
|
* |
|
|
|
|
|
* @since Ant 1.7 |
|
|
|
|
|
*/ |
|
|
|
|
|
public void setIgnoremissing(boolean b) { |
|
|
|
|
|
ignoreMissing = b; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Marker that indicates where the name of the source file should |
|
|
* Marker that indicates where the name of the source file should |
|
|
* be put on the command line. |
|
|
* be put on the command line. |
|
@@ -354,10 +364,10 @@ public class ExecuteOn extends ExecTask { |
|
|
|
|
|
|
|
|
for (int j = 0; j < names.length; j++) { |
|
|
for (int j = 0; j < names.length; j++) { |
|
|
File f = new File(base, names[j]); |
|
|
File f = new File(base, names[j]); |
|
|
if ((f.isFile() && !"dir".equals(type)) |
|
|
|
|
|
|
|
|
if ((!ignoreMissing) || (f.isFile() && !"dir".equals(type)) |
|
|
|| (f.isDirectory() && !"file".equals(type))) { |
|
|
|| (f.isDirectory() && !"file".equals(type))) { |
|
|
|
|
|
|
|
|
if (f.isFile()) { |
|
|
|
|
|
|
|
|
if (ignoreMissing || f.isFile()) { |
|
|
totalFiles++; |
|
|
totalFiles++; |
|
|
} else { |
|
|
} else { |
|
|
totalDirs++; |
|
|
totalDirs++; |
|
|