This file is part of AREG SDK, the multi-tasking application development platform.
Copyright (c) Aregtech, 2017-2021
Contact: info[at]aregtech.com
To run a code generator:
- Create a Service Interface XML file ( .siml ) in your project;
- Include code genrator codegen.jar library to your Java path.
- Call from command line:
If
codegen.jar
is inCLASSPATH
run it calling
$ java -jar codegen.jar --root=<project_root> --doc=<relative_path_to_siml> --target=<relative_path_to_target_location>
or
$ java com.aregtech.CMFMain --root=<project_root> --doc=<relative_path_to_siml> --target=<relative_path_to_target_location>
If codegen.jar
is not in CLASSPATH
excplicitly specify the path of codegen.jar
$ java -jar <areg-sdk-root>/tools/codegen.jar --root=<project_root> --doc=<relative_path_to_siml> --target=<relative_path_to_target_location>
Where:
<project_root>
if the path of your project, for example~/aregtech/areg-sdk/examples
;<relative_path_to_siml>
the service interface prototype file path relative to the project root, for example12_pubsvc/res/SystemShutdown.siml
<relative_path_to_target_location>
the generated code output folder path relative to the project root, for example12_pubsvc/generated
<areg-sdk-root>
is the path toareg-sdk
sources.
We recommend include generated files in a static library, so that all projects can link. For example: if an applicatios consists of 2 processes (2 separate project), create third static library project called, for instance, generated
that is linked in these two processes.