1*0f6ddb37SDavid Ostrovskyjava_library( 2*0f6ddb37SDavid Ostrovsky name = "pgm", 3*0f6ddb37SDavid Ostrovsky srcs = glob(["src/**"]), 4*0f6ddb37SDavid Ostrovsky resource_strip_prefix = "org.eclipse.jgit.pgm/resources", 5*0f6ddb37SDavid Ostrovsky resources = glob(["resources/**"]), 6*0f6ddb37SDavid Ostrovsky visibility = ["//visibility:public"], 7*0f6ddb37SDavid Ostrovsky deps = [ 8*0f6ddb37SDavid Ostrovsky ":services", 9*0f6ddb37SDavid Ostrovsky "//lib:args4j", 10*0f6ddb37SDavid Ostrovsky "//lib:httpclient", 11*0f6ddb37SDavid Ostrovsky "//lib:httpcore", 12*0f6ddb37SDavid Ostrovsky "//lib:jetty-http", 13*0f6ddb37SDavid Ostrovsky "//lib:jetty-io", 14*0f6ddb37SDavid Ostrovsky "//lib:jetty-security", 15*0f6ddb37SDavid Ostrovsky "//lib:jetty-server", 16*0f6ddb37SDavid Ostrovsky "//lib:jetty-servlet", 17*0f6ddb37SDavid Ostrovsky "//lib:jetty-util", 18*0f6ddb37SDavid Ostrovsky "//lib:servlet-api", 19*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.archive:jgit-archive", 20*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.http.apache:http-apache", 21*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit:jgit", 22*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.lfs:jgit-lfs", 23*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.lfs.server:jgit-lfs-server", 24*0f6ddb37SDavid Ostrovsky "//org.eclipse.jgit.ui:ui", 25*0f6ddb37SDavid Ostrovsky ], 26*0f6ddb37SDavid Ostrovsky) 27*0f6ddb37SDavid Ostrovsky 28*0f6ddb37SDavid Ostrovskyjava_import( 29*0f6ddb37SDavid Ostrovsky name = "services", 30*0f6ddb37SDavid Ostrovsky jars = [":services_jar"], 31*0f6ddb37SDavid Ostrovsky) 32*0f6ddb37SDavid Ostrovsky 33*0f6ddb37SDavid Ostrovskygenrule( 34*0f6ddb37SDavid Ostrovsky name = "services_jar", 35*0f6ddb37SDavid Ostrovsky srcs = glob(["META-INF/services/*"]), 36*0f6ddb37SDavid Ostrovsky outs = ["services_jar.jar"], 37*0f6ddb37SDavid Ostrovsky cmd = "r=$$PWD && cd org.eclipse.jgit.pgm && zip -qr $$r/$@ .", 38*0f6ddb37SDavid Ostrovsky) 39