On Windows systems:
iqgen.bat "-xmi=(File) -out=(Dir) -jsp=(Dir) -main=(filename) [-nobackup] [Options] [Filter]"
or
iqgen.bat "-transform=(name of transformation)"
On Unix/Linux systems:
iqgen.sh -xmi=(File) -out=(Dir) -jsp=(Dir) -main=(filename) [-nobackup] [Options] [Filter]
or
iqgen.sh "-transform=(name of transformation)"
Basic settings:
| Option | Comment |
|---|---|
| -transform=[name] | Name of defined transformation |
| -xmi=[file] | XMI input file |
| -out=[dir] | Output directory |
| -jsp=[dir] | Jsp directory |
| -main=[filename] | Name of the master jsp file (transformation) |
Options:
| Option | Comment | Default |
|---|---|---|
| -nobackup | If set, no backup files will be created during merge | not set |
| -force | If set, forces regenerating of all files | not set |
| -loglevel | Defines the LogLevel ';' separated (FILEINFO;VALIDATION; WARN;INFO;DEBUG;TRACE) | WARN;FILEINFO; VALIDATION |
| -verbose | Use -loglevel | |
| -quiet | Quiet mode; no output | off |
Filter:
| Option | Comment |
|---|---|
| -name=[pattern] | Generates only model elements with name pattern[a] |
| -stereotype=[pattern] | Generates only model elements with stereotype pattern |
| -filename=[pattern] | Generates only files with name pattern |
| -package=[packagepattern] | Generates only model elements which match the packagepattern[b] |
[a] A pattern can include * and ? [b] A packagepattern is an antstyle pattern. It can include ** representing 1-n packages and * representing one package (Example **.basic.*) | |
Example:
iqgen.bat "-xmi=./samples/getting_started/tutorial_1/model/crm.xml -out=./samples/getting_started/tutorial_1/src -jsp=./samples/getting_started/tutorial_1/templates -main=main.jsp -nobackup"
or
iqgen.bat "-transform=tutorial_1 -nobackup"