Command line for formatting Java Eclipse

I'm just wondering if there is a command line tool for formatting eclipse java. Or if there is an ant task to execute it.

In my script there are 2 java formatters, one for the forter for Android, the other is our internal formatter.

So, we have to change it between these two formatter.

+4
source share
1 answer

Not sure what exactly you are looking for, but if I guess correctly, this is something like this: http://www.peterfriese.de/formatting-your-code-using-the-eclipse-code-formatter/

It describes how to perform an eclipse built in formatting using the command line. You can also include a format for each project.

+5
source

Source: https://habr.com/ru/post/1343360/


All Articles