blob: 4a4929e58f92f2022409f4c9283fc2239b2715ea [file] [log] [blame]
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',
':Edit',
],
provided_deps = ['//lib/gwt:user'],
visibility = ['PUBLIC'],
)
gwt_module(
name = 'Edit',
srcs = [':jgit_edit_src'],
deps = [':edit_src'],
visibility = ['PUBLIC'],
)
prebuilt_jar(
name = 'edit_src',
binary_jar = ':jgit_edit_src',
)
genrule(
name = 'jgit_edit_src',
cmd = 'unzip -qd $TMP $(location //lib/jgit/org.eclipse.jgit:jgit_src) ' +
'org/eclipse/jgit/diff/Edit.java;' +
'cd $TMP;' +
'zip -Dq $OUT org/eclipse/jgit/diff/Edit.java',
out = 'edit-sources.jar',
)
java_library(
name = 'server',
srcs = [
SRC + x for x in [
'diff/EditDeserializer.java',
'diff/ReplaceEdit.java',
'internal/storage/file/WindowCacheStatAccessor.java',
'lib/ObjectIdSerialization.java',
]
],
deps = [
'//lib:gson',
'//lib/jgit/org.eclipse.jgit:jgit',
],
visibility = ['PUBLIC'],
)
java_test(
name = 'jgit_patch_tests',
srcs = glob(['src/test/java/**/*.java']),
deps = [
':server',
'//lib/jgit/org.eclipse.jgit:jgit',
'//lib:junit',
],
visibility = ['//tools/eclipse:classpath'],
)