We welcome everyone to work on this cool project. We use a typical PR system:
- You fork and clone
- Commit and push changes to your fork
- Make a pull request (PR)
- Clone your fork to your local machine
- From the command palette, select
c/c++: Select a Configuration...
, and choose the configuration corresponding to your OS - Run the downloadIbmiHeader utility on the ile folder to download the relevant headers to your local system: https://github.ibm.com/ibmi-toronto/downloadIBMiHeader
- Open the repository up in Visual Studio Code
- Connect to a remote IBM i where the build can happen
- Correctly set your current library to where your objects can be built
- Code for IBM i will tell you what you have it set to when you have connected to a system.
- Set your Deploy Workspace Location in the IFS
- Code for IBM i can set a default location if you have not yet done it before, OR
- Right click on the chosen directory and select 'Set Deploy Workspace Location'.
- You only have to do this once.
- Actions are available to compile source from your local machine
- Control / Command + E
cd Manzan
- ensure that the working directory is the root of Manzan
gmake install
- installs the Handler (ILE component) into theMANZAN
library- change installation library with
BUILDLIB=MANZAN2 gmake install
- change installation library with
After you install Manzan with the makefiles:
- Both the Handler and Distributor are built
- The configuration files (
.ini
extension) get created in/QOpenSys/etc/manzan/
- Manzan can be started with
/opt/manzan/bin/manzan
cd Manzan/camel
mvn compile
- builds camel into the
camel/target
directory
- builds camel into the
mvn exec:java
- this starts the Distributor up on the system.
- If it is run for the first time, it will create empty configuration files (
.ini
extension) into the working directory
To build only the camel component, you can use camel
as the target:
gmake camel
To build only the ILE component, you can use ile
as the target:
gmake ile
- ShellCheck vscode extension
- act https://github.com/nektos/act (github actions local runner)
- c/c++ vscode extensions
- Code Spell Checker
- First copy the .env.sample file to .env and fill out the values
- Run tests by executing one of the following tasks
- deployAndTest: Sync the files to your IBM i, and run the tests
- deployBuildAllAndTest: Sync the files to your IBM i, build manzan including the ile component and run the tests
- deployBuildCamelAndTest: Sync the files to your IBM i, only build the java code and then run the tests
- Run the task
ileUnitTest