You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BUCK 872B

12345678910111213141516171819202122232425262728293031323334353637
  1. TESTS = glob(['tst/**/*.java'])
  2. for t in TESTS:
  3. n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
  4. java_test(
  5. name = n,
  6. labels = ['pgm'],
  7. srcs = [t],
  8. deps = [
  9. ':helpers',
  10. '//org.eclipse.jgit:jgit',
  11. '//org.eclipse.jgit.archive:jgit-archive',
  12. '//org.eclipse.jgit.junit:junit',
  13. '//org.eclipse.jgit.pgm:pgm',
  14. '//lib:hamcrest-core',
  15. '//lib:hamcrest-library',
  16. '//lib:javaewah',
  17. '//lib:junit',
  18. '//lib:slf4j-api',
  19. '//lib:slf4j-simple',
  20. '//lib:commons-compress',
  21. '//lib:tukaani-xz',
  22. ],
  23. vm_args = ['-Xmx256m', '-Dfile.encoding=UTF-8'],
  24. )
  25. java_library(
  26. name = 'helpers',
  27. srcs = glob(['src/**/*.java']),
  28. deps = [
  29. '//org.eclipse.jgit:jgit',
  30. '//org.eclipse.jgit.pgm:pgm',
  31. '//org.eclipse.jgit.junit:junit',
  32. '//lib:args4j',
  33. '//lib:junit',
  34. ],
  35. )