how to install gitiles for gerrit?

1,439 views
Skip to first unread message

prife zhu

unread,
Dec 30, 2016, 2:55:36 AM12/30/16
to Repo and Gerrit Discussion
Hi ALL,

I have successfully build gerrit and gitiles plugin. then I got may jars under buck-out/gen/plugins/gitiles.

$ ls -lh *.jar
-rw-rw-r-- 1 prife prife  87K 12月 30 15:37 commons-lang3-abi.jar
-rw-rw-r-- 1 prife prife 309K 12月 30 15:37 commons-lang3.jar
-rw-rw-r-- 1 prife prife  12M 12月 30 15:37 gitiles__base.jar
-rw-rw-r-- 1 prife prife  74K 12月 30 15:37 gitiles-servlet-abi.jar
-rw-rw-r-- 1 prife prife 292K 12月 30 15:37 gitiles-servlet.jar
-rw-rw-r-- 1 prife prife  35K 12月 30 15:37 guice-multibindings-abi.jar
-rw-rw-r-- 1 prife prife  75K 12月 30 15:37 guice-multibindings.jar
-rw-rw-r-- 1 prife prife 533K 12月 30 15:37 icu4j-abi.jar
-rw-rw-r-- 1 prife prife 9.6M 12月 30 15:37 icu4j.jar
-rw-rw-r-- 1 prife prife  15K 12月 30 15:37 nullable-jsr305-abi.jar
-rw-rw-r-- 1 prife prife  18K 12月 30 15:37 nullable-jsr305.jar
-rw-rw-r-- 1 prife prife  29K 12月 30 15:37 prettify-abi.jar
-rw-rw-r-- 1 prife prife 117K 12月 30 15:37 prettify.jar
-rw-rw-r-- 1 prife prife 596K 12月 30 15:37 soy-abi.jar
-rw-rw-r-- 1 prife prife 1.6M 12月 30 15:37 soy.jar


 Can any one give me some hint how to install gitiles for gerrit?

PS.
1. download code
$ cd plugins
$ cd gitiles
$ git checkout -b stable-2.12 remotes/origin/stable-2.12

2. build with buck
$ cd ../
$ /opt/projects/gerrit/buck/bin/buck build plugins/gitiles:gitiles

prife zhu

unread,
Dec 30, 2016, 4:39:17 AM12/30/16
to Repo and Gerrit Discussion
I have not found any document that tell which jar should be installed.

Could anyone can provide any suggestions?

chenm...@gmail.com

unread,
Dec 30, 2016, 5:07:18 AM12/30/16
to Repo and Gerrit Discussion
oh, do you have solved it Now ?

在 2016年12月30日星期五 UTC+8下午5:39:17,prife zhu写道:

prife zhu

unread,
Dec 30, 2016, 5:09:41 AM12/30/16
to Repo and Gerrit Discussion
I have fixed this.


but, after build, the  gitiles.jar  is under buck-out/gen/plugins/gitiles/gitiles/..

Matthias Sohn

unread,
Dec 30, 2016, 5:31:22 AM12/30/16
to prife zhu, Repo and Gerrit Discussion
you have built the gitiles plugin in the Gerrit tree (cloned the gitiles plugin repository
in the plugins folder of the Gerrit repository) hence the plugin artefacts ends up in
the folder buck-out/gen/plugins/gitiles/gitiles.jar as described in 

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

prife

unread,
Dec 30, 2016, 7:38:25 AM12/30/16
to Matthias Sohn, Repo and Gerrit Discussion
thanks,I have installed gitiles  in gerrit, and it works very well~
--
把有限的时间投入到无限的学习中去
Reply all
Reply to author
Forward
0 new messages