Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1.07 KB

File metadata and controls

42 lines (28 loc) · 1.07 KB

Whitelist Java JNI Plugin

This checker plugin enforces set key values to adhere to a whitelist specified in the keys specification. To specify a whitelist just add the following to your key's specification entry:

check/whitelist/#0 = some-allowed-value
check/whitelist/#1 = another-allowed-value
check/whitelist/#9 = yet-nother-allowed-value

# indices do not have to be consecutive. Whitelist entries are case sensitive and are not checked or normalized when read.

Keys below check/whitelist not adhering to the schema above will be ignored and correspondig warnings will be issued.

The pattern matches check/whitelist/#_*\\d+ and therefore is not equivalent to Elektra array indices.

Binary keys are not supported.

Build

The plugin is a subproject of the Java binding Gradle multi-project.

To assemble the plugin's JAR:

cd src/bindings/jna
gradle :plugins:whitelist:assemble

To execute its unit tests:

cd src/bindings/jna
gradle :plugins:whitelist:test

To do both in one step:

cd src/bindings/jna
gradle :plugins:whitelist:build