blob: 7b5dd36ef51279a237d2e71d05a996b311b9c861 [file] [log] [blame] [raw]
include_defs('//bucklets/war.bucklet')
war(
name = 'gitiles',
libs = ['//gitiles-servlet:servlet'],
context = [
'//gitiles-servlet:static-resources.zip',
':web_xml.zip',
],
visibility = ['PUBLIC'],
)
genrule(
name = 'web_xml',
cmd = 'mkdir -p $TMP/WEB-INF'
+ ';cp -r $SRCDIR/src/main/webapp/WEB-INF/web.xml $TMP/WEB-INF'
+ ';cd $TMP'
+ ';zip -qr $OUT *',
srcs = ['src/main/webapp/WEB-INF/web.xml'],
out = 'web_xml.zip',
)