That is essentially what I did - took all the dependencies and wrapped them up into a single executable jar. The final product is a little over 20mb - it would be great if we could shrink this down a bit.
Getting the formatter to run on the command line is a first step... unfortunately the only way to create the .properties file ( that drives the formatter ) is still in Eclipse. Next order of business should probably include creating a stand-alone piece for that. I'm looking at ANTLR3 now... and am entertaining a ground-up rewrite to get rid of unnecessary dependencies, improve performance, and flesh out some attachment points for other tooling (i.e. FlexPMD). Cheers, Rick Winscot On Thursday, January 5, 2012 at 4:18 PM, Michael Schmalle wrote: > Hi Rick > > Ernest actually commented on my blog post today about this very thing! > Saying his formatter can run on the command line with minimal eclipse > jars. > > Quoting him > > "FYI, you can run FlexFormatter from the command line if that helps. > It still requires some Eclipse jars, but you don’t have to have > Eclipse itself running." > > Mike > > > I have command-line version of the Flex Formatter ready to test... > > if anyone (preferably on a Mac) would like to give it a go - let me > > know. > > > > The tool is executed on the command-line as: > > > > java -jar ApacheFlexFormatter.jar -settings=[ path to .properties > > file ] -path=[ file, files, or directory ] -reformat=[ true / false > > ] -tabsize=[ 0 - 9 ] > > > > If anyone reading this missed out on the conversations yesterday, > > the idea is that a stand-alone tool can be integrated into any IDE > > (not just Eclipse) or executed prior to a commit. Really... it could > > be used whenever it is needed. > > > > Cheers, > > > > Rick Winscot