mobbl-doc-codegen
v0.0.1
Published
Code generation utility for Mobbl document definition. Generates Java and Obj-C code.
Downloads
5
Readme
mobbl-doc-codegen
The MOBBL Document Code Generator is a NodeJS command line tool that enables the user to easily generate Objective-C/Java classes from Document definitions in projects using MOBBL.
Installation:
$ npm install -g mobbl-doc-codegen
Usage:
$ mobbl-doc-codegen [options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --config <config> Path of mobbl config directory. Defaults to the current directory
-o, --output <output directory> Path of output directory name. Defaults to "./generated"
-L, --language <language> Output language: only "java" is supported currently
-L, --package <package> Java package (only has effect if generating for java: defaults to com.example.CodeGenerator
Example run:
$ mobbl-doc-codegen --config /path/to/mobbl/config/ --language java --package com.example
This will scan /path/to/mobbl/config/
for every XML file with a <Document>
definition and output generated Java code to ./generated/com/example/
.