[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[buckminster-dev] Re: Standalone Java code formatter question
|
Aaron Digulla wrote:
Eric Lessard wrote:
The problem is that I would like to use it to automatically format our
files when we check them in and 15+ seconds is way too long. Is there
a way to speed it up a bit?
Eclipse needs some time to setup it's environment, so there is probably
no solution out of the box. But here are some ideas:
- Use "Format" on the project before you checkin. That will format all
files of the project at once.
- Get the source for org.eclipse.jdt.core.JavaCodeFormatter and wrap it
in a small helper class which accepts Socket connections.
Then start this helper once and supply it with work by sending signals
(and parameters) over a small helper application.
- Create an install of Eclipse which creates only the absolutely
neccessary plugins (ie. only JDT in this case; remove everything else).
That should reduce startup times a bit but not much.
- You could also try to convert the Java formatter into a standalone app
but I'm not sure how much work it will be to setup everything.
You could try using the Buckminster headless launcher. It's easy to setup so that it
supports more or less the jdt only and adding a customized command that calls the actual
formatter is done using an extension point. More info can be found here:
http://wiki.tada.se/wiki/display/buckminster/Buckminster+Headless
Kind Regards,
Thomas Hallgren