Ok. Thank's for the details.
Anyway, is there a way to do the same explicit registering with the
standard Eclipse launcher: I mean with ->Run As -> Acceleo plugin
application ?
Otherwise, I'll try a programmatic Java launcher, as in your the unit
test...
Regards,
Thierry.
Le 18/11/2013 10:40, Topcased user list where issues are discussed a écrit :
it is described in the attached sample of the bug.
owever, there is my workaround :
AcceleoServicesRegistry.INSTANCE.addServiceClass("plugin_id",
"QualifiedNameOfServiceWithoutExtension");
2013/11/15 Topcased user list where issues are discussed
<[email protected]
<mailto:[email protected]>>
Yes, it seems to be the same problem.
Now, in practice, how do you register yourself the service "manually"?
Thanks,
Thierry Lafage.
Topcased user list where issues are discussed a écrit :
Maybe you are facing this bug :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=406528
a workaround i found is to register myself the service.
2013/11/15 Topcased user list where issues are discussed
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>
Hi Topcased users,
I've been stucked by a problem with acceleo Java services
for a
long time. I've tried several things to make it work, but
I didn't
manage...
So, here is the problem: I want to define a basic service
in Java
and I want to call it from a query in an .mtl file.
I strictly followed the Acceleo Tutorial : I defined a
Java source
"Toto.java" where I put my java class, then I defined a
tutu.mtl
service file where I defined the queries associated with
the Java
service. Then, I defined another .mtl file, the main module,
main.mtl, where the queries from tutu.mtl are called.
I added the package of my Java service Toto in the
MANIFEST.MF and
I assured it is in the runtime classpath.
When I run the main.mtl (with Acceleo plugin application
(default)), I get this error:
"Class pkg.name.Toto Couldn't be found in the classpath of the
bundle containing module tutu.emtl"
At first, I was running Topcased-5.1. So I updated to
Topcased-5.3.0 -> same problem.
Then I saw that the acceleo version is not the latest one in
Topcased-5.3.0. So I updated to Acceleo 3.4.1 -> same problem.
With this latest config, I first tried to put Toto.java and
tutu.mtl in a different package, name "services" as
recommended in
the tutorial. Then, I put all files in the same package ->
same
problem.
I searched the Internet for this problem and I found little
information. It seems that the problem has been fixed by the
latest acceleo releases, but I can't fix it out.
Any clue would be greatly appreciated (I can give more
details if
needed).
Regards,
Thierry Lafage.
_______________________________________________
Topcased-users mailing list
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
------------------------------------------------------------------------
_______________________________________________
Topcased-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users