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
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact