blob: 2a987205acf1f591b4e7d8518a3e91d759821952 [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
Michael Ochmanna8434612016-07-08 10:58:27 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanna8434612016-07-08 10:58:27 +02009_java_ -jar gerrit.war _rulec_
10 -d <SITE_PATH>
11 [--quiet]
12 [--all | <PROJECT>...]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
Jason Tsayfa43ad22011-06-15 15:29:43 -070014
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070016Looks for a Prolog rule file named `rules.pl` on the repository's
17`refs/meta/config` branch. If rules.pl exists, creates a JAR file
18named `rules-'SHA1'.jar` in `'$site_path'/cache/rules`.
Jason Tsayfa43ad22011-06-15 15:29:43 -070019
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080020== OPTIONS
Jason Tsayfa43ad22011-06-15 15:29:43 -070021-d::
22--site-path::
23 Location of the gerrit.config file, and all other per-site
Edwin Kempinf1acbb82011-09-15 12:49:42 +020024 configuration data, supporting libraries and log files.
Jason Tsayfa43ad22011-06-15 15:29:43 -070025
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070026--all::
27 Compile rules for all projects.
28
29--quiet::
30 Suppress non-error output messages.
31
32<PROJECT>:
33 Compile rules for the specified project.
Jason Tsayfa43ad22011-06-15 15:29:43 -070034
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080035== CONTEXT
Dave Borowitzada289c2018-12-18 13:24:14 -080036This command can only be run on a server which has local access to the
Jason Tsayfa43ad22011-06-15 15:29:43 -070037managed Git repositories.
38
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070039Caching needs to be enabled. See
40link:config-gerrit.html#cache.directory[cache.directory].
41
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080042== EXAMPLES
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070043To compile a rule JAR file for test/project:
Jason Tsayfa43ad22011-06-15 15:29:43 -070044
Michael Ochmannb99feab2016-07-06 14:10:22 +020045----
Shawn O. Pearce82ad96a2011-06-20 18:43:56 -070046 $ java -jar gerrit.war rulec -d site_path test/project
Michael Ochmannb99feab2016-07-06 14:10:22 +020047----
Jason Tsayfa43ad22011-06-15 15:29:43 -070048
49GERRIT
50------
51Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070052
53SEARCHBOX
54---------