Is it possible to run Tools | Reformat Code from cmd line?


Is it possible to run Tools | Reformat Code from cmd line?
Is it also possible to run Tools | Optimise imports from cmd line?

I want to be able to integrate these tasks into our nightly builds so that consistant formatting is constantly maintained.

It would be very cool if we can do this from Ant or Maven.

Regards,
Nick

2 comments
Comment actions Permalink

Take a look at the PrettyPrinter from Chris Seguin. It can be run as an ant task, so I think it's perfect for your needs. We use it at xdoclet build file so all our code has a standard formatting.

http://jrefactory.sourceforge.net/cspretty.html

By the way, if you don't know xdoclet you should: http://xdoclet.sourceforge.net ]]>

0
Comment actions Permalink

It's not supported yet. You might add it as a feature request into the
Tracker.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Nick Minutello" <jiveadmin@jetbrains.com> wrote in message
news:547425.1037543253040.JavaMail.jrun@is.intellij.net...
>

Is it possible to run Tools | Reformat Code from cmd line?
Is it also possible to run Tools | Optimise imports from cmd line?

>

I want to be able to integrate these tasks into our nightly builds so that

consistant formatting is constantly maintained.
>

It would be very cool if we can do this from Ant or Maven.

>

Regards,
Nick



0

Please sign in to leave a comment.