gerrit/gerrit-war/BUCK
Saša Živkov e2a1e7ef34 Install all packaged plugins automatically on auto site init
When Gerrit is deployed in a servlet container and the system property
'gerrit.init' is defined then, besides the automatic site
initialization, also all packaged plugins (under WEB-INF/plugins) will
be installed.

Change-Id: Ia1e50d88ba63e96fc70717f854c87c7409f0c618
2014-02-21 13:24:09 +01:00

77 lines
1.7 KiB
Python

include_defs('//tools/git.defs')
java_library2(
name = 'init',
srcs = glob(['src/main/java/**/*.java']),
deps = [
'//gerrit-cache-h2:cache-h2',
'//gerrit-extension-api:api',
'//gerrit-httpd:httpd',
'//gerrit-lucene:lucene',
'//gerrit-openid:openid',
'//gerrit-pgm:init-api',
'//gerrit-pgm:init-base',
'//gerrit-reviewdb:server',
'//gerrit-server:server',
'//gerrit-server/src/main/prolog:common',
'//gerrit-solr:solr',
'//gerrit-sshd:sshd',
'//lib:guava',
'//lib:gwtorm',
'//lib/guice:guice',
'//lib/guice:guice-servlet',
'//lib/log:api',
'//lib/jgit:jgit',
],
compile_deps = ['//lib:servlet-api-3_1'],
visibility = [
'//:',
'//gerrit-gwtdebug:gwtdebug',
'//tools/eclipse:classpath',
],
)
genrule(
name = 'webapp_assets',
cmd = 'cd $SRCDIR/src/main/webapp; zip -qr $OUT .',
srcs = glob(['src/main/webapp/**/*']),
deps = [],
out = 'webapp_assets.zip',
visibility = ['//:'],
)
genrule(
name = 'log4j-config__jar',
cmd = 'jar cf $OUT -C $SRCDIR/src/main/resources .',
srcs = ['src/main/resources/log4j.properties'],
out = 'log4j-config.jar',
)
prebuilt_jar(
name = 'log4j-config',
binary_jar = genfile('log4j-config.jar'),
deps = [':log4j-config__jar'],
visibility = [
'//:',
'//tools/eclipse:classpath',
],
)
prebuilt_jar(
name = 'version',
binary_jar = genfile('version.jar'),
deps = [':gen_version'],
visibility = ['//:'],
)
genrule(
name = 'gen_version',
cmd = ';'.join([
'cd $TMP',
'mkdir -p com/google/gerrit/common',
'echo "%s" >com/google/gerrit/common/Version' % git_describe(),
'zip -9Dqr $OUT .',
]),
out = 'version.jar',
)