#!/bin/bash # build.sh [-Drelease=true to use perforce interal repos] ./gradlew -DserverTest=true $1 clean test war || exit 1 # also create the zip file from the build template ZIPDIR="p4search-"$(gradle/headChange.sh) if [ -e "./tmp" ]; then rm -rf "./tmp"; fi mkdir -p ./tmp/$ZIPDIR cp -r ./build/* ./tmp/$ZIPDIR/ if [ -e "../util" ] ; then cp ../util/solr*.tgz ./tmp/$ZIPDIR/ cp ../util/jetty*.gz ./tmp/$ZIPDIR/ fi if [ -e "../doc/relnotes/" ] ; then cp -r ../doc/relnotes/* ./tmp/$ZIPDIR/ fi # also copy the LICENSE, README, and INSTALL into the zip cp LICENSE ./tmp/$ZIPDIR/ cp README ./tmp/$ZIPDIR/ cp INSTALL.md ./tmp/$ZIPDIR/ # add the build output find webapp/build -name "p4-search*.war" -exec cp {} ./tmp/$ZIPDIR/ \; # zip it! pushd tmp && tar -pczf p4-search.tgz $ZIPDIR && popd # done, result is in ./tmp
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 18866 | Sven Erik Knop | Updated with latest version | ||
#1 | 9795 | Sven Erik Knop |
Populate //guest/sven_erik_knop/p4search/... from //guest/perforce_software/p4search/.... |
||
//guest/perforce_software/p4search/search/build.sh | |||||
#2 | 9007 | Doug Scheirer |
update workshop p4-search with the latest released code: * code updates - bug fixes * adding jetty + solr tarballs * script updates * updated p4java jar to latest release |
||
#1 | 8975 | Matt Attaway | Populate official version of p4-search from the original Doug Scheirer source |