Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho and code generation: Best practices

Hi Christiaan,

We also generate a lot of code and use Tycho.

I made a (bash) script that runs under Jenkins in the Amazon cloud. It generates the poms every build and massages them into a form we need (with sed/awk/etc...). So, no, we do not check in poms at all. I very much dislike one-time-generation schemes.

In addition to that we also do code formatting and subsequent check-ins by the build server as well as build failures when the generation process results in differences from checked in files (unfortunately some eclipse generation schemes require changing and checkin of the results ;-).

We have this scheme in place for almost two years now, I am very satisfied with the general setup.

Greetz,
Tom


On Tue, Jun 5, 2012 at 10:44 AM, Christian Soltenborn <csoltenborn@xxxxxx> wrote:
Hi everybody,

in my tycho build, I'm generating quite a bit of code. To be more
specific, I generate a bunch of EMF plug-ins, two GMF editors, I've got
a JavaCC grammar, and finally, an XText grammar.

Now, some of the plug-ins will be generated completely (e.g., EMF's
.edit and .editor stuff). As such, these projects are not in my
repository, and therefore there's no place for committing the pom.xml
files for these projects.

Therefore, my build process currently looks like this:
1) Check out projects
2) Import projects into Eclipse workspace
3) Code generation
4) Generate POMs
5) Adjust some of the POMs by replacing them with prepared ones
6) mvn install

In the meantime, I have read quite a few times that the POMs should be
committed to the repository, and that tycho POM generation is only
supposed to be used once. In contrast, the MDD community proposes to
never commit anything which can be generated.

So I'm asking myself: How do you guys handle code generation and
committing of POMs? Are there any best practices which would suit my
very situation?

Thanks
Christian


--
A. Whitney Brown: "I'm not a vegetarian because I love animals. I'm a
vegetarian because I hate plants."
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top