980b51f64e
Force relative paths by passing the Prolog compiler only a relative name from within $SRCDIR. This avoids picking up the user's $HOME path as part of the generated class file names, and prevents build failures on filesystems where individual path components are limited to 256 bytes. Change-Id: I43f2a93daf857413401f4e1aeb24b9b2a8c741fe
93 lines
2.1 KiB
Python
93 lines
2.1 KiB
Python
INIT_SRCS = ['src/main/java/com/google/gerrit/pgm/' + n for n in [
|
|
'init/InitFlags.java',
|
|
'init/InitStep.java',
|
|
'init/InitStep.java',
|
|
'init/InstallPlugins.java',
|
|
'init/Section.java',
|
|
'util/ConsoleUI.java',
|
|
'util/Die.java',
|
|
]]
|
|
|
|
java_library(
|
|
name = 'init-api',
|
|
srcs = INIT_SRCS,
|
|
deps = [
|
|
'//gerrit-server:server',
|
|
'//lib:jsr305',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-assistedinject',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_sources(
|
|
name = 'init-api-src',
|
|
srcs = INIT_SRCS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library2(
|
|
name = 'pgm',
|
|
srcs = glob(['src/main/java/**/*.java'], excludes = INIT_SRCS),
|
|
resources = glob(['src/main/resources/**/*']),
|
|
deps = [
|
|
':init-api',
|
|
'//gerrit-cache-h2:cache-h2',
|
|
'//gerrit-common:server',
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-gwtexpui:server',
|
|
'//gerrit-httpd:httpd',
|
|
'//gerrit-lucene:lucene',
|
|
'//gerrit-openid:openid',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//gerrit-server/src/main/prolog:common',
|
|
'//gerrit-solr:solr',
|
|
'//gerrit-sshd:sshd',
|
|
'//gerrit-util-cli:cli',
|
|
'//lib:args4j',
|
|
'//lib:guava',
|
|
'//lib:gwtorm',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib:h2',
|
|
'//lib:jsr305',
|
|
'//lib:servlet-api-3_0',
|
|
'//lib/commons:dbcp',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-assistedinject',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib/jetty:server',
|
|
'//lib/jetty:servlet',
|
|
'//lib/jgit:jgit',
|
|
'//lib/log:api',
|
|
'//lib/log:log4j',
|
|
'//lib/lucene:core',
|
|
'//lib/mina:sshd',
|
|
'//lib/prolog:prolog-cafe',
|
|
],
|
|
compile_deps = ['//gerrit-launcher:launcher'],
|
|
visibility = [
|
|
'//:',
|
|
'//gerrit-acceptance-tests/...',
|
|
'//tools/eclipse:classpath',
|
|
'//Documentation:licenses.txt',
|
|
],
|
|
)
|
|
|
|
java_test(
|
|
name = 'pgm_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
deps = [
|
|
':init-api',
|
|
':pgm',
|
|
'//gerrit-server:server',
|
|
'//lib:junit',
|
|
'//lib:easymock',
|
|
'//lib/guice:guice',
|
|
'//lib/jgit:jgit',
|
|
'//lib/jgit:junit',
|
|
],
|
|
source_under_test = [':pgm'],
|
|
)
|