76e396b49b
gwt_xml is more pythonic naming convention. Beside that recent Buck version introduced new gwt_jar parameter in prebuilt_jar() rule and future Buck versions may introduce gwt_xml parameter to java_library() rule. Change-Id: Ia6447e62945ce3eb5ff951421ebf2f0fdf622b3d
45 lines
897 B
Python
45 lines
897 B
Python
SRC = 'src/main/java/org/eclipse/jgit/'
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = [
|
|
SRC + 'diff/Edit_JsonSerializer.java',
|
|
SRC + 'diff/ReplaceEdit.java',
|
|
],
|
|
gwt_xml = SRC + 'JGit.gwt.xml',
|
|
deps = [
|
|
'//lib:gwtjsonrpc',
|
|
'//lib/gwt:user',
|
|
'//lib/jgit:jgit',
|
|
'//lib/jgit:Edit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'server',
|
|
srcs = [
|
|
SRC + 'diff/EditDeserializer.java',
|
|
SRC + 'diff/ReplaceEdit.java',
|
|
SRC + 'internal/storage/file/WindowCacheStatAccessor.java',
|
|
SRC + 'lib/ObjectIdSerialization.java',
|
|
],
|
|
deps = [
|
|
'//lib:gson',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_test(
|
|
name = 'jgit_patch_tests',
|
|
srcs = glob(['src/test/java/**/*.java']),
|
|
deps = [
|
|
':server',
|
|
'//lib/jgit:jgit',
|
|
'//lib:junit',
|
|
],
|
|
source_under_test = [':server'],
|
|
visibility = ['//tools/eclipse:classpath'],
|
|
)
|