[forge-dev] Formatting Forge generated output
Ivan St. Ivanov
ivan.st.ivanov at gmail.com
Mon Jan 26 09:19:59 EST 2015
Hi George,
Thanks! But this is if you implement an addon that generates code.
What if you are just using Forge. Could you somehow configure the tool with
your own formatter XML to be used for example in the entities or JAX-RS
resources generation?
Thanks,
Ivan
On Mon, Jan 26, 2015 at 3:43 PM, George Gastaldi <ggastald at redhat.com>
wrote:
> If you call Roaster.format() passing as an argument the Eclipse formatter
> profile XML it should format as you wish. You could implement it as a
> ResourceListener and monitor new resources using the ResourceMonitor
> feature, or after every command execution using a CommandExecutionListener.
>
>
>
> > Em 26/01/2015, às 10:04, Ivan St. Ivanov <ivan.st.ivanov at gmail.com>
> escreveu:
> >
> > Hi folks,
> >
> > During my recent Forge talk for the Barcelona JUG I was asked whether it
> is possible to change the formatter that is currently used by Forge for the
> generated classes. At the moment the generated code is with 3 spaces
> indentation and with opening braces on the next line. Which is not what
> everybody uses.
> >
> > So, how can we change that configuration?
> >
> > Thanks,
> > Ivan
> > _______________________________________________
> > forge-dev mailing list
> > forge-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/forge-dev
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20150126/796b5bfe/attachment.html
More information about the forge-dev
mailing list