Build Targets

Home > Model Transformation > Model-to-Text (M2T) > OOMEGA Generator > Build Targets

Often, you want to group templates into targets. If you configure the code generator with a given target, the whole set of templates will be executed without naming each single one. For example the target named "core" in the OOMEGA Core Project groups six templates.

To define a target you just have to create a file with the extension ".target" and make it available in the classpath/templatepath for the code generator. The file has to contain one canonical template name in each line. The suffix ".jgen" of the templates must not be included. The Core target defined by the file "core.target" looks like the following:

org/oomega/core/Class.java
org/oomega/core/ClassValue.java
org/oomega/core/AttributeClassHelper.java
org/oomega/core/jSDL.java
org/oomega/codec/ClassCodec.java
org/oomega/persistence/EntityClassTX.java

Next chapter: Compile Templates

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.