Command-Line Interface
Parameter | Short form | Description |
---|---|---|
--debug | -D | Enable Debug logging |
--projectCompile | -pc | Enable project-level compilation |
--properties-file | -pf | A properties file with JPortal properties i.e. --propertiesfile=postgres.properties |
--log | -l | Logfile name i.e. --log=jportal2.log |
--inputdir | -d | Input Directory |
InputFiles | List of input files | |
--builtin-generator | -o | Built-In (Java-based) generatorName to run. Format is --builtin-generator=CSNetCode:./cs |
--download-template-location | -dtl Location in which to place downloaded Freemarker templates. Default is |
|
--download-template | -dt | Download the specified template from the given location. Zip files as well as git repos are supported. Format is <freemarker_generator_name>:<url> [ | downloadSpecifier ] i.e. --download-template=MyCustomGenerator:https://github/SI-Gen/SQLAlchemy.zip or --download-template=MyCustomGenerator:https://github.com/SI-Gen/jportal2-generator-vanguard-sqlalchemy.git |1.3 NOTE THE REQUIRED TAG AT THE END OF THE GIT URL!!! For GIT, you MUST specify either a tag (recommended), or a branch. For ZIP, you can optionally specify stripBaseDir as a downloadSpecifier. This option is useful if you download zip files from eg. github tags, where they automatically put a container directory around the actual files. Eg. --download-template=MyCustomGenerator:https://github/SI-Gen/SQLAlchemy.zip|stripBaseDir The files will be downloaded to and unzipped in, to <template-location>/<freemarker_generator_name> . |
--template-generator | -t | FreeMarker-based generator to run. Format is --template-generator=MyCustomGenerator:./output The template must exist as a directory under the location specified by --template-location. |
--builtin-postprocessor | -bpp | Built-In (Java-based) generatorName to run. Format is <generator_name>:<dest_dir> i.e. --builtin-postprocessor=CSNetCode:./cs |
--template-postprocessor | -tpp | FreeMarker-based post-processor to run. Format is --template-postprocessor=MyCustomGenerator:./output The template must exist as a directory under the location specified by --template-location . |
--template-location | -tl | Freemarker template location. Default is <current_working_directory>/jportal2_templates |
--flag | -F | Flags to pass to the generator |