Corticon extended operators for Java.Math library
Adds java.math commands as extended operators.
This project includes a gradle script, however it can be built and run without having gradle installed using the gradlew scripts.
Before starting ensure you have java installed.
- Download the source repository, (either through git or as an archive)
- If using an archive extract it.
- Copy your CcExtensionAPI.jar file to the "Java Math Extended Operators" directory. This can be found in your CORTICON_HOME/Studio/lib directory. On windows machines you can generally find this jar in C:/Program Files/Progress/Corticon [version number]/Studio/lib
- Open a command window in the "Java Math Extended Operators" directory and execute the following command:
gradlew build
- Assuming the build was successful, you should have the resulting jar file in the build/libs directory.
This is likely caused by not having the JAVA_HOME enviornment variable set. On windows go to computer->right click->Properties->Advanced system settings->Enviornment variables->new
Then define the enviornment variable JAVA_HOME with a value pointing to where your JDK is installed.
- Clone the repository
git clone https://github.com/corticon/java-math-extended-operators.git
- Perform a gradle build
cd java-math-extended-operators
gradle build
You can modify these extended operators by simply modifying the source files, we recommend that you import the two projects (Java Math Extended Operators and Java Math Tests) into corticon studio. From here, you can easily modify the existing operators or add your own.
When adding new operators, or modifying old ones be sure to run the updated operators against the existing set of ruletests (found in the Java Math Tests project). If you are creating new operators be sure to create tests for the extended operator, to ensure it is working properly.
If you make substantial modifications to the project's directory structure, it may become necessary to regenerate the gradle wrapper scripts. Run the following command and check the gradlew and gradlew.bat files into your fork of the repository.