Skip to content

Commit

Permalink
[tools] Generate the copying command for Central bundles.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Apr 3, 2017
1 parent 0f0212f commit 47e9318
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-tools/scripts/mvn-create-bundle.sh
Expand Up @@ -71,6 +71,7 @@ then
CDIR=`pwd`

NBBUNDLES=0
COMMAND_LINE="for file in "
for TARGET in `find -type d -name "target"`
do
cd "$TARGET"
Expand Down Expand Up @@ -99,11 +100,15 @@ then
jar cf "$BUNDLENAME" $FILES
echo "done"
NBBUNDLES=$[$NBBUNDLES + 1]
COMMAND_LINE="${COMMAND_LINE} ${BUNDLENAME}"
fi
fi
cd "$CDIR"
done
echo "$NBBUNDLES were created."
COMMAND_LINE="${COMMAND_LINE}; do cp -v \`find -name \"\$file\"\` ~/target; done"
echo "Copying command line:"
echo "${COMMAND_LINE}"

else
exit 255
Expand Down

0 comments on commit 47e9318

Please sign in to comment.