JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   11.  How To
 


11.4 Change Templates

The templates that JeeWiz uses to create its output are intended to be changed to support different patterns of generation.

We recommend you create your own model to house any changed templates. This will allow you to change one or two templates (which you add to your own model) without being impacted by an upgrade of the standard JeeWiz templates (which should be in other directories). By putting your own model before the standard models in the inheritance chain, your templates will be used in preference to the standard template of the same name.

To do this:

  • Create a directory, by convention called 'control'.
  • Create the model.properties file. The parent of this model, defined in the 'parent=' line, will normally point to a JeeWiz model, e.g.
    parent=${jwhome}/resources/jboss3/control
    
    Where the model may vary, you can also use a previously defined variable for the parent model, e.g. by saying
    parent=${jwhome}/resources/${model}/control
    
  • For overall build properties you want to change, create a system.properties file in the control directory and set properties in there. These will override any properties in system.properties files in parents.
  • For per-object templates that you want to change, create directories named after the objects beneath the control directory, and put the appropriate template in there.

 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.