7b8161da76
Modfied lib/maven.defs so that maven_jar() is able to handle snapshot builds. Simplified the implementation of the advance() method in EditIterator. Previously, the method was calling substring() on the lines, which was unnecessary. Change-Id: I3b00caa140539ae77605721d741afae75ae1448e
105 lines
2.3 KiB
Python
105 lines
2.3 KiB
Python
include_defs('//gerrit-gwtui/DEFS')
|
|
|
|
genrule(
|
|
name = 'ui_optdbg',
|
|
cmd = 'cd $TMP;' +
|
|
'unzip -q $SRCDIR/ui_dbg.zip;' +
|
|
'mv' +
|
|
' gerrit_ui/gerrit_ui.nocache.js' +
|
|
' gerrit_ui/gerrit_dbg.nocache.js;' +
|
|
'unzip -qo $SRCDIR/ui_opt.zip;' +
|
|
'mkdir -p $(dirname $OUT);' +
|
|
'zip -qr $OUT .',
|
|
srcs = [
|
|
genfile('ui_dbg.zip'),
|
|
genfile('ui_opt.zip'),
|
|
],
|
|
deps = [
|
|
':ui_dbg',
|
|
':ui_opt',
|
|
],
|
|
out = 'ui_optdbg.zip',
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
gwt_application(
|
|
name = 'ui_opt',
|
|
module_target = MODULE,
|
|
compiler_opts = [
|
|
'-strict',
|
|
'-style', 'OBF',
|
|
'-optimize', '9',
|
|
'-XdisableClassMetadata',
|
|
'-XdisableCastChecking',
|
|
],
|
|
deps = APP_DEPS,
|
|
)
|
|
|
|
gwt_application(
|
|
name = 'ui_dbg',
|
|
module_target = MODULE,
|
|
compiler_opts = DEBUG_OPTS + ['-strict'],
|
|
deps = APP_DEPS,
|
|
visibility = ['//:eclipse'],
|
|
)
|
|
|
|
gwt_user_agent_permutations(
|
|
name = 'ui',
|
|
module_name = 'gerrit_ui',
|
|
module_target = MODULE,
|
|
compiler_opts = DEBUG_OPTS + ['-draftCompile'],
|
|
browsers = BROWSERS,
|
|
deps = APP_DEPS,
|
|
visibility = ['//:'],
|
|
)
|
|
|
|
gwt_module(
|
|
name = 'ui_module',
|
|
srcs = glob(['src/main/java/**/*.java']),
|
|
gwtxml = 'src/main/java/%s.gwt.xml' % MODULE.replace('.', '/'),
|
|
resources = glob(['src/main/java/**/*']),
|
|
deps = [
|
|
'//gerrit-gwtexpui:Clippy',
|
|
'//gerrit-gwtexpui:CSS',
|
|
'//gerrit-gwtexpui:GlobalKey',
|
|
'//gerrit-gwtexpui:Linker',
|
|
'//gerrit-gwtexpui:Progress',
|
|
'//gerrit-gwtexpui:SafeHtml',
|
|
'//gerrit-gwtexpui:UserAgent',
|
|
'//gerrit-common:client',
|
|
'//gerrit-patch-jgit:client',
|
|
'//gerrit-prettify:client',
|
|
'//gerrit-reviewdb:client',
|
|
'//lib:gwtjsonrpc',
|
|
'//lib:gwtjsonrpc_src',
|
|
'//lib:gwtorm',
|
|
'//lib:jsr305',
|
|
'//lib/codemirror:codemirror',
|
|
'//lib/gwt:user',
|
|
'//lib/gwt:gwt-test-utils',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = [
|
|
'//tools/eclipse:classpath',
|
|
'//Documentation:licenses.txt',
|
|
],
|
|
)
|
|
|
|
java_test(
|
|
name = 'ui_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
resources = glob(['src/test/resources/**/*']) + [
|
|
'src/main/java/com/google/gerrit/GerritGwtUI.gwt.xml',
|
|
],
|
|
deps = [
|
|
':ui_module',
|
|
'//lib:junit',
|
|
'//lib/gwt:dev',
|
|
'//lib/gwt:user',
|
|
'//lib/gwt:gwt-test-utils',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
source_under_test = [':ui_module'],
|
|
)
|
|
|