Skip to content
This repository was archived by the owner on Feb 26, 2019. It is now read-only.

Development

InfiniyPhase edited this page Oct 11, 2017 · 2 revisions

Gradle

Building CARIS

To build CARIS from the terminal, navigate to the root folder of the CARIS project. To confirm that the directory is correct, look for the build.gradle file. It must be in the directory you are running Gradle from.

gradle build

To remove any old files that may interfere in the building of the project, run:

gradle clean

Running CARIS

To run CARIS during development, it is convenient to start CARIS directly from Gradle. This has the benefit of managing all required dependencies, without undue hassle.

gradle run

Passing Arguments

By default, Gradle is not configured to pass any arguments to the Java environment. However, it is necessary to provide the Bot Token as the first argument. To pass arguments to CARIS, use the flag:

-PrunArgs="['Arg1','Arg2','Arg3']"

It is possible to include as many arguments as necessary.

The complete command may look like:

gradle run -PrunArgs="['TOKEN']"

Clone this wiki locally