Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 64237c32e1a3987ae0679f8cce11d24433cc9f9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
java_library(
  name = 'pgm',
  srcs = glob(['src/**']),
  resources = glob(['resources/**']),
  deps = [
    ':services',
    '//org.eclipse.jgit:jgit',
    '//org.eclipse.jgit.archive:jgit-archive',
    '//org.eclipse.jgit.http.apache:http-apache',
    '//org.eclipse.jgit.ui:ui',
    '//lib:args4j',
  ],
  visibility = ['PUBLIC'],
)

prebuilt_jar(
  name = 'services',
  binary_jar = ':services__jar',
)

genrule(
  name = 'services__jar',
  cmd = 'cd $SRCDIR ; zip -qr $OUT .',
  srcs = glob(['META-INF/services/*']),
  out = 'services.jar',
)

genrule(
  name = 'jgit',
  cmd = 'cat $SRCDIR/jgit.sh $(location :jgit_jar) >$OUT;' +
        'chmod a+x $OUT',
  srcs = ['jgit.sh'],
  out = 'jgit',
  visibility = ['PUBLIC'],
)

java_binary(
  name = 'jgit_jar',
  main_class = 'org.eclipse.jgit.pgm.Main',
  deps = [
    ':pgm',
    '//lib:slf4j-simple',
  ],
)

Back to the top