|Re: [Acceleo] [Luna] Launching acceleo problem [message #1699595 is a reply to message #1699167]
||Thu, 25 June 2015 09:48
| Stephane Begaudeau
Registered: April 2010
Location: Nantes (France)
So I've tried to run it as a plug-in. Well, I'm warned: "Due to changes in the Eclipse platform in Luna, the Acceleo Plug-in Application strategy may not work." but I've found in Bugzilla that when I add './bin' directory to the classpath - it will work OK. It does, but it seems to be a workaround only and I'm afraid that something will go wrong.
It is indeed only a workaround. Long story short, we were using your current Eclipse platform to run the plugin in your workspace but while in your workspace your compiled code is in a folder named, most of the time, "bin", in the runtime you want to be able to load code named "com.company.folder.MyClass" and not "bin.com.company.folder.MyClass". So before we used to modify the classpath of our bundles after deployment but this feature has been removed from the core of Equinox. The Plugin Development Environment can let you run code in debug by launching another complete Eclipse instance which is too heavy for our use case. As a result, you can adapt the classpath of your generator by adding your output folders to you classpath (which is not a good idea) or you can improve your generator to make it work in stand alone.
In order to work with UML, make sure that the UML metamodel is registered along with its resource factory in the Java launcher. You may need to call UMLResourcesUtil.init(resourceSet) in the method registerPackages of your Java launcher to prepare everything to load properly an UML model.
Stéphane Bégaudeau, Obeo
Powered by FUDForum
. Page generated in 0.03172 seconds