0.0.1 • Published 11 years ago
mobbl-doc-codegen v0.0.1
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-codegenUsage:
$ 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.CodeGeneratorExample run:
$ mobbl-doc-codegen --config /path/to/mobbl/config/ --language java --package com.exampleThis will scan /path/to/mobbl/config/ for every XML file with a <Document> definition and output generated Java code to ./generated/com/example/.