blob: 3236c3822ff7d8556e01e79ad4b51bc2c170e041 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= rulec
Jason Tsayfa43ad22011-06-15 15:29:43 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -07004rulec - Compile project-specific Prolog rules to JARs
Jason Tsayfa43ad22011-06-15 15:29:43 -07005
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -07008'java' -jar gerrit.war 'rulec' -d <SITE_PATH> [--all | <PROJECT>...]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08009--
Jason Tsayfa43ad22011-06-15 15:29:43 -070010
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080011== DESCRIPTION
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070012Looks for a Prolog rule file named `rules.pl` on the repository's
13`refs/meta/config` branch. If rules.pl exists, creates a JAR file
14named `rules-'SHA1'.jar` in `'$site_path'/cache/rules`.
Jason Tsayfa43ad22011-06-15 15:29:43 -070015
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080016== OPTIONS
Jason Tsayfa43ad22011-06-15 15:29:43 -070017-d::
18--site-path::
19 Location of the gerrit.config file, and all other per-site
Edwin Kempinf1acbb82011-09-15 12:49:42 +020020 configuration data, supporting libraries and log files.
Jason Tsayfa43ad22011-06-15 15:29:43 -070021
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070022--all::
23 Compile rules for all projects.
24
25--quiet::
26 Suppress non-error output messages.
27
28<PROJECT>:
29 Compile rules for the specified project.
Jason Tsayfa43ad22011-06-15 15:29:43 -070030
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080031== CONTEXT
Jason Tsayfa43ad22011-06-15 15:29:43 -070032This command can only be run on a server which has direct
33connectivity to the metadata database, and local access to the
34managed Git repositories.
35
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070036Caching needs to be enabled. See
37link:config-gerrit.html#cache.directory[cache.directory].
38
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080039== EXAMPLES
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070040To compile a rule JAR file for test/project:
Jason Tsayfa43ad22011-06-15 15:29:43 -070041
42====
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070043 $ java -jar gerrit.war rulec -d site_path test/project
Jason Tsayfa43ad22011-06-15 15:29:43 -070044====
45
46GERRIT
47------
48Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070049
50SEARCHBOX
51---------