codegen.bat Command

To generate platform-specific code for supported devices.

Syntax

codegen -cs|-oc|-rim -client -mbs -sqlite|-ulj -log:co 
[-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, without compiling them.
  • -oc – for iPhone, generates Object C source files.
  • -rim – for BlackBerry, generates Java source files.
  • -client – generates client side source code.
  • -mbs – generates code for a messaging 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.
  • -log:co – generates a client-only log record.
  • -output – specifies the output directory where generated code is placed. Defaults to <current_directory>\utils\genfiles.
  • -doc – generates documentation for the generated code.