mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-28 06:41:19 +01:00
12 lines
606 B
Bash
Executable File
12 lines
606 B
Bash
Executable File
#!/bin/bash
|
|
#------------------------------------------------------------------------------
|
|
# Selectively builds only those projects that contained modified Java files.
|
|
#------------------------------------------------------------------------------
|
|
|
|
projects=$(find $ONOS_ROOT -name '*.java' \
|
|
-not -path '*/openflowj/*' -and -not -path '.git/*' \
|
|
-exec $ONOS_ROOT/tools/dev/bin/onos-build-selective-hook {} \; | \
|
|
sort -u | sed "s:$ONOS_ROOT::g" | tr '\n' ',' | \
|
|
sed 's:/,:,:g;s:,/:,:g;s:^/::g;s:,$::g')
|
|
|
|
[ -n "$projects" ] && cd $ONOS_ROOT && mvn --projects $projects ${@:-clean install} |