Calling Xtend generation from my Builder Participant [message #734376] |
Fri, 07 October 2011 11:00  |
Eclipse User |
|
|
|
Hi,
I would like to start doing some of the code generation of my project with Xtend. I already have a Builder Participant registered, which xtends from JavaProjectBasedBuilderParticipant and implements IXtextBuilderParticipant.
If I combine my builder participant and the automatic xtext code generation, I get:
java.lang.NullPointerException
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.getConfiguredFileSystemAccess(JavaProjectBasedBuilderParticipant.java:112)
at org.eclipse.xtext.builder.JavaProjectBasedBuilderParticipant.build(JavaProjectBasedBuilderParticipant.java:77)
at altagracia.builder.XtextMyDSLBuilderParticipant.build(XtextMyDSLBuilderParticipant.java:41)
at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:182)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:85)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
I think I should somehow call the xtend generation from MyDSLBuilderParticipant.
My DSL projects don't need to have Java nature, and this exception appears when I add the java nature to my project (I think it registers two java builder participants).
I'm lost here, I would appreciate any advice.
Thanls!
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04953 seconds