How can I get the javac tool to read command-line arguments from a file?

John Zukowski

If you are compiling lots of files or passing lots of command line arguments, you can put all the commands into a file and precede the filename with an @ sign on the command line. For instance, if the command were in the file commands.txt, you can call javac with:

javac @commands.txt