Skip to content

VelocityClassBasedFileMaker vs. VelocityModelBasedLineInserter

iks github user edited this page Jul 15, 2014 · 3 revisions

There are four differences between these two generators.

First, only the inserter can insert into existing files and create new ones, whereas the file maker can only create new files.

Second, the artefact property “TargetDir” is mandatory for the inserter (otherwise iT would be unkown where to insert), but not so for the file maker.

Third, for the file maker must exist exactly one main template, for the inserter more than main templates are possible, but they must reference the same target file, allowing to insert into different sections within the same target file.

Fourth, “class based” means, that for each class defined in the model an output artefact (a file, e.g. a JavaBean) is created. “Model based” means that an insertion is made in only one file (or only one output artefact is created) for the whole model.


[Back] (https://github.com/iks-github/MOGLiCodeCreator/wiki/How-to-apply-MOGLiCC%3F)

Clone this wiki locally