4

I just wonder if there is a command line tool for eclipse java file formatter. Or if there is an ant task to execute it.

In my scenario, there are 2 java formatters, one is for android formatter, the other is our internal formatter.

So we have to change it between these two formatter.

nitind
  • 19,089
  • 4
  • 34
  • 43
iihero
  • 41
  • 1
  • 3

1 Answers1

6

Not sure what exactly you are looking for but if im guessing correctly it is something like this: formatting-your-code-using-the-eclipse-code-formatter.

This describes how to execute the eclipse built in formatter using the command line. You can also enable the format per project.

Emil Sierżęga
  • 1,785
  • 2
  • 31
  • 38
MBU
  • 4,998
  • 12
  • 59
  • 98