Hi!
The latest Texo version supports headless/server code generation directly from Java or ANT. This makes it possible to integrate Texo code generation in your overall build process.
So how to setup headless/build-integrated code generation?
Texo uses Eclipse for code formatting and import resolving. So, start by downloading an Eclipse version suitable for your build platform. Then install the Texo plugins in this Eclipse version through the Texo update site and put this Eclipse version somewhere on your build server.
As a second step choose a location on the build server where Texo can create a workspace and Java project. And last, place the model (ecore/xsd) files on the build server.
To generate code using ANT you can use a macrodefinition. To run the macro:
<texo.gen eclipse=”/home/build/eclipse”
data=”/home/build/workspace”
projectName=”testgen”
modelLocation=”/home/build/models”
jpa=”true” dao=”false”/>
The parameters have the following meaning:
- eclipse: the eclipse installation location
- data: the workspace location
- projectName: the name of a Java project to use, see here for more information
- modelLocation: the location of the model files
- jpa: generate code with JPA annotations
- dao: generate a DAO layer
The generated code will be present in the Java project on your build server and can be copied/compiled from there.
Instead of using ANT, you can also execute headless code generation directly in Java.
That’s all, with these latest developments, code generation and your build process can be nicely tied together!
Thanks for reading and I hope this blog post helps to give Texo a try. Visit the Texo wiki for more information. Let me know if you have any questions or remarks on the EMFT newsgroup or forum!
gr. Martin
Image may be NSFW.
Clik here to view.

Clik here to view.
