简体   繁体   中英

Is it possible to run multiple classes using Ant after compilation?

I'm totally new to StackOverflow so please try to tolerate me.Thank you.I'm new to ANT with a beginners knowledge in java. So I wanted to know if it is possible to run multiple classes of java source files in an xml file using Ant.

Instead of specifying multiple java classnames within the targets, can I run the run classes in a single go?

码

If you are indeed asking whether a java task can be configured to run more than one class I believe the answer is no. According to the documentation for the java task the classname attribute specifies

the Java class to execute.

If you need to run multiple classes using a single java task you could create a controller class to run these classes then simply invoke that single controller.

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