Command syntax and parameter descriptions.
Run codegen.bat to execute the Code Generation
Utility. The codegen.bat file is located in SMP_HOME\MobileSDK\ObjectAPI\Utils\bin.
Syntax
codegen -android|-cs|-oc -client -doe -sqlite|-ulj
[-output <output_dir>] [-doc] <ESDMA_dir>\META-INF\sup-db.xml
All parameters not enclosed by "[...]" are required for use with DOE-C.
Parameters
- -cs – for Windows and Windows Mobile,
generates C# source files.
- -android – for Android, generates Java
source files.
- -oc – for iPhone, generates Object C
source files.
- -client – generates client side source
code.
- -doe – generates code for a DOE-based
synchronization package.
- -sqlite – for Windows and Windows Mobile,
and iPhone, generates code for database type
SQLite.
- -ulj – for BlackBerry, generates code
for database type UltraLiteJ.
- -output – specifies the output directory where generated code is placed.
Defaults to SMP_HOME\MobileSDK\ObjectAPI\Utils\genfiles.
- -doc – generates documentation for the
generated code.