Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 1 | checkstyle_source = 'src/main/resources/onos/checkstyle.xml' |
| 2 | suppression_source = 'src/main/resources/onos/suppressions.xml' |
| 3 | |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 4 | export_file ( |
Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 5 | name = 'checkstyle-xml', |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 6 | src = checkstyle_source, |
| 7 | visibility = [ 'PUBLIC' ], |
Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 8 | ) |
| 9 | |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 10 | export_file ( |
Brian O'Connor | 4847ea3 | 2016-04-29 16:33:06 -0700 | [diff] [blame] | 11 | name = 'suppressions-xml', |
Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 12 | src = suppression_source, |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 13 | visibility = [ 'PUBLIC' ], |
Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 14 | ) |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 15 | |
| 16 | export_file ( |
Thomas Vachuska | 275d2e8 | 2016-07-14 17:41:34 -0700 | [diff] [blame] | 17 | name = 'start-buck-daemon', |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 18 | visibility = [ 'PUBLIC' ], |
| 19 | ) |
| 20 | |
| 21 | COMPILE = [ |
| 22 | '//lib:guava', |
| 23 | '//lib:checkstyle', |
| 24 | ] |
| 25 | |
| 26 | RUN = [ |
| 27 | '//lib:commons-logging', |
| 28 | '//lib:commons-beanutils', |
| 29 | '//lib:commons-lang3', |
| 30 | '//lib:commons-collections', |
| 31 | '//lib:antlr', |
| 32 | ] |
| 33 | |
| 34 | java_library ( |
| 35 | name = 'checkstyle', |
| 36 | srcs = glob([ 'src/main/java/**/*.java' ]), |
| 37 | deps = COMPILE, |
| 38 | ) |
| 39 | |
| 40 | java_binary ( |
Thomas Vachuska | 275d2e8 | 2016-07-14 17:41:34 -0700 | [diff] [blame] | 41 | name = 'buck-daemon-jar', |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 42 | deps = [ ':checkstyle' ] + RUN, |
Thomas Vachuska | 275d2e8 | 2016-07-14 17:41:34 -0700 | [diff] [blame] | 43 | main_class = 'org.onosproject.buckdaemon.BuckDaemon', |
Brian O'Connor | be95f68 | 2016-05-18 15:40:19 -0700 | [diff] [blame] | 44 | blacklist = [ 'META-INF/.*' ], |
| 45 | visibility = [ 'PUBLIC' ], |
| 46 | ) |
| 47 | |
| 48 | # cmd = '#!/bin/bash\n' |
| 49 | # cmd += '$1 &>/dev/null < /dev/null &' |
| 50 | # |
| 51 | # genrule( |
| 52 | # name = 'checkstyle-sh', |
| 53 | # bash = "echo '%s' > $OUT && chmod +x $OUT" % cmd, |
| 54 | # out = 'checkstyle.sh', |
| 55 | # ) |
| 56 | # |
| 57 | # sh_test( |
| 58 | # name = 'checkstyle-runner', |
| 59 | # test = ':checkstyle-sh', |
| 60 | # args = [ |
| 61 | # '$(exe :checkstyle-jar)', |
| 62 | # '$(location //lib:checkstyle)', |
| 63 | # '$(location //tools/build/conf:checkstyle-xml)', |
| 64 | # '`mktemp /tmp/%s-checkstyle-XXXXXX`', |
| 65 | # ], |
| 66 | # labels = [ 'checkstyle' ], |
| 67 | # visibility = [ 'PUBLIC' ], |
| 68 | # ) |