Jonathan Hart
Committed by Gerrit Code Review

Only include current version's pom and feature.xml files in the package

Change-Id: I3014497b2af6e0a992aef4a8ff8494f80559d452
......@@ -49,7 +49,7 @@ function build_stage_dir() {
# Stage the ONOS bundles, but only those that match the version
mkdir -p $ONOS_STAGE/$KARAF_DIST/system/org/onosproject
find $M2_REPO/org/onosproject -type f -path "*/$ONOS_POM_VERSION/*" \
-name '*.jar' -o -name '*.pom' -o -name '*-features.xml' \
\( -name '*.jar' -o -name '*.pom' -o -name '*-features.xml' \) \
| grep -v -Ee '-tests.jar|-[0-9]{8}.[0-9]{6}-' \
| while read src; do
dst=$ONOS_STAGE/$KARAF_DIST/system/${src#$M2_REPO/*}
......