简体   繁体   中英

How to ues javac to compile .java files wrote in a txt file?

I have some .java file, like a.java, b.java, c.java...., is there a way to compile them together by writting .java files' name into a txt file, and use some javac opitions to compile them? Like "javac (some options here) a.txt". The txt file contains the name of .java file that I want to compile.

将用空格或换行符分隔的 java 文件路径写入file.txt并使用@调用javac前置file.txt

javac @file.txt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM