summaryrefslogtreecommitdiffstats
path: root/Documentation/pgm-rulec.txt
blob: 1b50812aaaeaec34ab6dacc80a2da7aacf875de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
= rulec

== NAME
rulec - Compile project-specific Prolog rules to JARs

== SYNOPSIS
[verse]
--
_java_ -jar gerrit.war _rulec_
  -d <SITE_PATH>
  [--quiet]
  [--all | <PROJECT>...]
--

== DESCRIPTION
Looks for a Prolog rule file named `rules.pl` on the repository's
`refs/meta/config` branch. If rules.pl exists, creates a JAR file
named `rules-'SHA1'.jar` in `'$site_path'/cache/rules`.

== OPTIONS
-d::
--site-path::
	Location of the gerrit.config file, and all other per-site
	configuration data, supporting libraries and log files.

--all::
	Compile rules for all projects.

--quiet::
	Suppress non-error output messages.

<PROJECT>:
	Compile rules for the specified project.

== CONTEXT
This command can only be run on a server which has direct
connectivity to the metadata database, and local access to the
managed Git repositories.

Caching needs to be enabled. See
link:config-gerrit.html#cache.directory[cache.directory].

== EXAMPLES
To compile a rule JAR file for test/project:

----
	$ java -jar gerrit.war rulec -d site_path test/project
----

GERRIT
------
Part of link:index.html[Gerrit Code Review]

SEARCHBOX
---------