简体   繁体   中英

How to invoke an Eclipse plugin from command line?

if I have a plugin that validates code in Eclipse to a particular standard/spec, is it possible to invoke that plugin from the command line, passing source files as arguments?

Thanks

You can create new headless application and run it through the command line. Here is a simple "hello word" example.

http://www.developertesting.com/archives/month200508/20050823-HeadlessHelloWorldInEclipse.html

Example:

java -jar plugins\org.eclipse.equinox.launcher_1.0.0.v20070523.jar -consoleLog 

-console -nosplash -application Console.ConsoleStatistics file:///c:/temp/test.aaxl

From: https://wiki.sei.cmu.edu/aadl/index.php/Creating_Headless_(Command_Line)_Plugins

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