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 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 = ['http'],
  7. srcs = [t],
  8. deps = [
  9. ':helpers',
  10. '//org.eclipse.jgit:jgit',
  11. '//org.eclipse.jgit.http.apache:http-apache',
  12. '//org.eclipse.jgit.http.server:jgit-servlet',
  13. '//org.eclipse.jgit.junit:junit',
  14. '//org.eclipse.jgit.junit.http:junit-http',
  15. '//lib:hamcrest-core',
  16. '//lib:hamcrest-library',
  17. '//lib:junit',
  18. '//lib:servlet-api',
  19. '//lib/jetty:http',
  20. '//lib/jetty:io',
  21. '//lib/jetty:server',
  22. '//lib/jetty:servlet',
  23. '//lib/jetty:security',
  24. '//lib/jetty:util',
  25. '//lib:commons-logging',
  26. ],
  27. vm_args = ['-Djava.io.tmpdir=buck-out'],
  28. )
  29. java_library(
  30. name = 'helpers',
  31. srcs = glob(['src/**/*.java']),
  32. deps = [
  33. '//org.eclipse.jgit:jgit',
  34. '//org.eclipse.jgit.http.server:jgit-servlet',
  35. '//org.eclipse.jgit.junit:junit',
  36. '//org.eclipse.jgit.junit.http:junit-http',
  37. '//lib:junit',
  38. ],
  39. )