Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = rulec |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 4 | rulec - Compile project-specific Prolog rules to JARs |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 8 | 'java' -jar gerrit.war 'rulec' -d <SITE_PATH> [--all | <PROJECT>...] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 9 | -- |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 10 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 11 | == DESCRIPTION |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 12 | Looks 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 |
| 14 | named `rules-'SHA1'.jar` in `'$site_path'/cache/rules`. |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == OPTIONS |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 17 | -d:: |
| 18 | --site-path:: |
| 19 | Location of the gerrit.config file, and all other per-site |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 20 | configuration data, supporting libraries and log files. |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 21 | |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 22 | --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 Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 30 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 31 | == CONTEXT |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 32 | This command can only be run on a server which has direct |
| 33 | connectivity to the metadata database, and local access to the |
| 34 | managed Git repositories. |
| 35 | |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 36 | Caching needs to be enabled. See |
| 37 | link:config-gerrit.html#cache.directory[cache.directory]. |
| 38 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 39 | == EXAMPLES |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 40 | To compile a rule JAR file for test/project: |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 41 | |
| 42 | ==== |
Shawn O. Pearce | 82ad96a | 2011-06-20 18:43:56 -0700 | [diff] [blame] | 43 | $ java -jar gerrit.war rulec -d site_path test/project |
Jason Tsay | fa43ad2 | 2011-06-15 15:29:43 -0700 | [diff] [blame] | 44 | ==== |
| 45 | |
| 46 | GERRIT |
| 47 | ------ |
| 48 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 49 | |
| 50 | SEARCHBOX |
| 51 | --------- |