Last week I created a new project on Eclipse Labs named guava-bundle that provides OSGi bundles of Guava releases along with a P2 update site.The update site provides SDK (with sources and Javadoc) and Runtime (binary only) features for the following releases:guava-r03guava-r04guava-r05guava-r06Guava follows a simple incremental numbering scheme for its releases versionning. As OSGi needs a finest level of details for versionning, guava-bundle mapped this scheme as follow:A Guava release rX where X is the integral version number of the release will be available in guava-bundle 1.X.0. For instance, the r05 release is available in the bundle with version number 1.5.0.All OSGi metadata are synchronized with this version number mapping:Bundles (aka plugins) versions,Exported packages versions,Features versionsProject home: http://code.google.com/a/eclipselabs.org/p/guava-bundle/P2 update site: http://svn.codespot.com/a/eclipselabs.org/guava-bundle/trunk/repository/Have fun!Note: there is a...
Blog
An introduction, that’s a good way to start a blog, isn’t it ? So, my name is Stéphane Bégaudeau and I’m a software developer, I am currently living in Nantes in France. I’m creating software for a French company named Obeo, a strategic member of the Eclipse foundation, which produce applications based on the Eclipse IDE. To be more precise I’m working on the code generator named Acceleo. It is an official projet of the Eclipse Foundation, and since its version 3, it is part of the release train of Eclipse.Lien d'origine...
Don't forget this Thursday if you're closed to Nantes to attend to our Eclipse DemoCamp.Here we have the program:18:00 - 18:10: Welcome18:10 - 18:35: Modisco, by Gabriel Barbier, Mia-Software18:35 - 19:00: WTP with Glassfish, by Laurent Ruaud and Evariste Konkolé, Serli19:00 - 19:25: Acceleo, by Stéphane Bégaudeau, Obeo19:25 - 19:50: Eclipse SOA, by INRIA19:50 - 20:15: ATL in the AtlanMod Model Management Architecture, by Hugo Bruneliere, EMN/INRIA20:15 - 20h45: GMF Showcases, by Etienne Juliot, Obeo20:45 - 21h00: Open discussionOur goal: few slides, lots of demos!If you want to attend, please use the wiki page: http://wiki.eclipse.org/Eclipse_DemoCamps_Helios_2010/NantesSee you on Thursday!Lien d'origineAuteur d'origine: Freddy...
Since I'm often brought to develop acceleo generators, I often had to design my templates so that they can be easily parameterized by users.This is important since by doing so, acceleo modules are flexible enough to fit my users needs and (hopefully) I don't have to update modules too often.Of course, you need to carefully design your templates to achieve this modularity. But for simple needs, simple solutions are the best.Acceleo natively supports the use of properties files which is an efficient and simple way to parameterize generation module: Properties are generally simple to understand and users can use them easily.Well, Acceleo 3 is out, and of course properties are still supported. I just wanted to point out something I stumble upon just recently: Properties files are now accessed via the java ResourceBundle mechanism. And consequently, they need to be in the classpath in order to be accessed at runtime.So, as a module developer, you'll place your default properties files (thos...
Those of you that know ClearCase also know that it requires the user to check out the file he wishes to edit before any editing can be done; kind of trying to edit a read-only file : you need to remove the read-only flag before anything else. Of course, this doesn't fit well with code generation tools such as Acceleo since the aim of such tools is to edit (or create) a number of files at once.Until now that is :). Acceleo can now be used in conjunction with ClearCase or other pessimist-locking Version Control Systems (VCS). How does it work?You might have noticed the "getGenerationStrategy()" method of the Java class we generate for your main mtl files; this is the method that matters for us. You simply need to change it from its default "return super.getGenerationStrategy()" to "return new WorkspaceAwareStrategy()" and you're done! Acceleo will now prompt the users of your generators to check out the files before attempting to modify them.Two things to note :You must change the javado...