Hi George,
yes I'm using the latest version:
@Grab(group='org.jboss.forge.roaster', module='roaster-api',
version='2.20.0.Final')
@Grab(group='org.jboss.forge.roaster', module='roaster-jdt',
version='2.20.0.Final')
I'm also using constants from DefaultCodeFormatterConstants, like:
properties.put(DefaultCodeFormatterConstants. FORMATTER_LINE_SPLIT, "120")
properties.put(DefaultCodeFormatterConstants. FORMATTER_TAB_CHAR, "space")
properties.put(DefaultCodeFormatterConstants. FORMATTER_TAB_SIZE, "4")
---
Luca Burgazzoli
On Fri, Feb 24, 2017 at 1:37 PM, George Gastaldi <ggastald@redhat.com> wrote:
> Are you using the latest Roaster version (2.20.0.Final)?
>
> Try using the constants without the shaded package value (eg.
>
> Properties prefs = new Properties();
> prefs.put("org.eclipse.jdt.core.formatter.comment.line_ length", "25");
>
> prefs.put("org.eclipse.jdt.core.formatter.comment.new_ lines_at_javadoc_boundaries",
> "false");
>
>
>
> Em 24 de fev de 2017 06:07, "Luca Burgazzoli" <lburgazzoli@gmail.com>
> escreveu:
>>
>> Hello,
>>
>> I'm doing some small experiments with Forge Roaster and I'm unable to
>> get some formatting options taken into account.
>>
>> My code and the result is here:
>> https://gist.github.com/lburgazzoli/ 115377c3887972696f77db3a71fef8 5f
>>
>> As you can notice, I configured some properties so that the code
>> should wrap at column 120 and it should use spaces instead of tabs but
>> my setup is ignored and the resulting code is still formatted with
>> some defaults.
>>
>> Am I doing something wrong ?
>>
>> Thx,
>> Luca
>>
>> ---
>> Luca Burgazzoli
>> _______________________________________________
>> forge-users mailing list
>> forge-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-users
>
>
> _______________________________________________
> forge-users mailing list
> forge-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-users
_______________________________________________
forge-users mailing list
forge-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-users