Execute JAR
A JAR file is a compressed file that uses the same compression algorithms and format as ZIP files.
JAR files normally contain a number of Java classes and some metadata (a manifest file). Java classes are part of applications written in Java.
The Execute JAR feature allows administrators to create their own Java classes, package them into a JAR file, and execute them from within OpenKM.
Examples of usage:
- When an administrator wants to perform an operation across the entire repository that affects many nodes, based on some logic or specific conditions, they can take advantage of building minimal code with the OpenKM API. Some examples include changing security, removing or moving files, or renaming files based on their metadata values, among others.
- Check a crontab task.
Requirements:
- The class must implement a public static void main(String[] args) method.
package com.openkm;
public class CronTabTest {
public static void main(String[] args) {
// Some stuff here
}
}