|
Re: [acceleo] debug java code in "Acceleo Plug-in Application" [message #757660 is a reply to message #756852] |
Mon, 21 November 2011 08:08 |
|
Vlad,
Sorry for the delay with this answer.
The generate.xml file is not used for the "java application" launches. This "ClassNotFound" seem like a regression to me, but I could be wrong. I'll try and launch a standalone generation to see whether com.google.* package are properly retrieved on my end.
As for debugging, debugging the java code behind the generators can only be done if you launch a new Eclipse instance in debug and launch the generation from there. i.e :
a- Select the Run > Debug configurations... menu
b- Double-click "Eclipse application" (or select an existing Eclipe application), then hit "Debug"
c- From the new Eclipse, use File > Import
d- Select "Existing Projects into Workspace" and browse to your generator project
e- With the project imported, launch the generation from there. The runtime should stop on the breakpoints set in your first Eclipse.
Alternatively, you could use an Acceleo UI application in order not to import your project in the second Eclipse :
a- Select File > New... and select "Acceleo UI Launcher project" and follow the wizard for your generator.
b- Select the Run > Debug configurations... menu
c- Double-click "Eclipse application" (or select an existing Eclipe application), then hit "Debug"
d- In the new Eclipse, create the model that will be the input of your generation
e- Right-click the input model and select Acceleo > <name of your generator>
Laurent Goubet
Obeo
|
|
|
|
Re: [acceleo] debug java code in "Acceleo Plug-in Application" [message #758360 is a reply to message #757665] |
Tue, 22 November 2011 21:23 |
Vlad Gheorghe Messages: 127 Registered: May 2011 |
Senior Member |
|
|
Hi Laurent,
Thank you for the answers.
I knew about the second variant you propose - run via Acceleo UI plugin in a debug target instance.
But it's still not clear to me what "Acceleo Plug-in Application" really does.
Does it run the acceleo engine in the *same* eclipse instance (the development instance) ?
(This is what I can deduce from the first variant that you describe).
If it is so, it follows that if
- I have a metamodel in the workspace
- I have an Acceleo generator plugin in the same workspace
- I run the generator as "Acceleo Plug-in Application" on a model also from the workspace
then the dynamic version of the metamodel is used during the generation.
Is that correct ?
Another question - you have told me that generate.xml is not used for "java application" launches.
What is it used for then ?
( Is it used as back-end of the Acceleo Plug-in app, or just as an alternate to Launch as "Acceleo plug-in App", using ant ?)
Best regards,
Vlad Gheorghe
[Updated on: Tue, 22 November 2011 21:24] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04093 seconds