Use the <apply> task.
It executes a command once for each file. Specify the files by means of filesets or any other resource. <apply> is built-in; no additional dependency needed; no custom task implementation needed.
It’s also possible to run the command only once, appending all files as arguments in one go. Use the parallel attribute to switch the behaviour.
Sorry for being late a year.
Related Contents:
- ant depends vs. antcall
- How can I create an executable JAR with dependencies using Maven?
- Write lines of text to a file in R
- Why use Gradle instead of Ant or Maven? [closed]
- What’s the de-facto way of reading and writing files in Rust 1.x?
- Maven: how to do parallel builds?
- Ant task to run an Ant target only if a file exists?
- File I/O in Every Programming Language [closed]
- Append to a file in Go
- Xcode variables
- Why does Maven have such a bad rep? [closed]
- Perl build, unit testing, code coverage: A complete working example
- Check if a file exists with Lua
- Why is there no need for Maven in .NET?
- Timeout on a Build Step of Jenkins
- Building C# solutions from command line with Visual Studio 2010
- Why does a read-only open of a named pipe block?
- How to filter the xcodebuild command line output?
- What is the best variant for appending a new line in a text file?
- Groovy write to file (newline)
- No key.store and key.alias properties found in build.properties
- Xcode – Automatically add all files in a folder to a target
- Find all files in a directory with extension .txt in Python
- File to byte[] in Java
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- Scanner vs. BufferedReader
- C fopen vs open
- How to open a file using the open with statement
- Writing a Python list of lists to a csv file
- Java FileOutputStream Create File if not exists
- Can a program depend on a library during compilation but not runtime?
- JUnit: how to avoid “no runnable methods” in test utils classes
- Build NuGet Package automatically including referenced dependencies
- PHP: How to check if image file exists?
- Create a file from a ByteArrayOutputStream
- How to read a single character at a time from a file in Python?
- Getting the inputstream from a classpath resource (XML file)
- How to get a MemoryStream from a Stream in .NET?
- Saving any file to in the database, just convert it to a byte array?
- How to set an Ant property only if it is unset
- Reading the first line of a file in Ruby
- How do I convert an Autotools project to a CMake project? [closed]
- Java “constant string too long” compile error. Only happens using Ant, not when using Eclipse
- write.csv for large data.table
- C# Copy a file to another location with a different name
- Is there a way to specify assembly references based on build configuration in Visual Studio?
- pass stdout as file name for command line util?
- What is the best way to slurp a file into a string in Perl?
- Can’t find the file created by outfile in MySQL
- How do I set -Dfile.encoding within ant’s build.xml?