The gsmake command

The gsmake command is a command line option to build projects. The tool is located in the GSTDIR/bin directory.

Syntax

gsmake [options] <file_list>

where file_list is a list of target Project (4pw) files, with or without the extension.

Table 1. gsmake - Help and version information
Argument Description
-h Display help information.
-V Display this program name and version.
Table 2. gsmake - Targets
Targets Parameter Description
-active   Target the default application, as set in the project.
-all   Target the complete project (default behavior).
-t TARGET Add TARGET to the list of targets to build. This argument can be used multiple times to build several targets.
Table 3. gsmake - Operations (exclusive)
Operations Description
-b Build the target (default behavior). The files that are not up-to-date are compiled, the others are not changed.
-r Rebuild the target. The output files are deleted, then all files are compiled.
-c Clean the target. The output files are deleted.
-convert Convert the project to the latest format.
-force-build Force the build/rebuild of the target. The files are compiled, whether or not they are up-to-date.
Table 4. gsmake - Options
Options Parameter Description
-j NB Set the number of parallel jobs to NB (default: 1). Set NB to 0 to use the local computer's number of CPUs. When using this option, gsmake will try to start multiple compilations in parallel when possible. This should speed up the global compilation time.
-encoding ENCODING Set the encoding to ENCODING. (default: System encoding)
-max-errors NB Set the maximum number of erroneous files to NB. Set to 0 (zero) for an unlimited number of error files. Default is 5.
-disable-dependencies   Disable the computation of the dependencies database. (default: false)
-ag-templateDir TEMPLATE Set the Application Generator template directory to TEMPLATE.

Enter an absolute path, or a path relative to the GSTDIR/bin/src/ag/tpl directory. The default value ("default") corresponds to the multiple-dialog template directory.

-generate-4pwdb   Generate the 4pwdb file only. Default is False.
-wcDir WEBCOMPONENTS_DIR Set the WebComponents Directory path
-verbose   Specify verbose mode for build / link / execution rules.
-port PORT Set the port number.
-javaServerPort JAVAPORT Set the Java Server port number.
-javaServerLog LOGLEVEL Set the Java Server log level.
Option Description
FINE Turn on all logs.
INFO Turn on log level to info message.
WARNING Turn on log level to warnings.
SEVERE Turn on log level to severe errors (default).
OFF Turn off logs.