Hi thierry. you can remove any Log4j stuff, this is only for logging purpose ( i d'ont remember my example used it )
For Google predicate class, Acceleo requires it, but it should be already present in your installation. Go to "run configurations" then "plug-ins" tab, then click on "Add required" to dd the missing plugins to your Eclipse runtime. 2013/11/25 Topcased user list where issues are discussed < [email protected]> > Hi Stéphane, > > I've tried your example, but I can't run it (NPE because of log4j missing > I guess, then out of memory exception). > > I've tried to make up a simple java runner for the generation, and I can't > have it work (class not found: com.google.common.base.Predicate -> I > don't know what google is doing here...). Any idea? > > By the way, all I need for the moment is the date. So, is there another > way to get current date with acceleo? > > Regards, > Thierry. > > > Topcased user list where issues are discussed a écrit : > >> Thierry, i haven't tried the workaround for the runAs -> acceleo plugin >> application. >> >> >> you can try to ask to the acceleo team in its forum : >> http://www.eclipse.org/forums/index.php/f/24/ >> >> Stéphane. >> >> >> >> 2013/11/18 Topcased user list where issues are discussed < >> [email protected] <mailto:topcased-users@gforge. >> enseeiht.fr>> >> >> >> 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] <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 >
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
