alshabib | 7db1356 | 2017-01-09 21:21:34 -0800 | [diff] [blame] | 1 | touch $APPS/org.onosproject.openflow-base/active |
| 2 | |
| 3 | find $ONOS -name "*.oar" -path "*/target/*" | while read line; do |
| 4 | mkdir -p $AUX && cd $AUX |
| 5 | cp $line $AUX |
| 6 | jar -xf $AUX/*.oar |
| 7 | name=$(grep "name=" $AUX/app.xml | sed 's/<app name="//g;s/".*//g') |
| 8 | mkdir -p $APPS/$name |
| 9 | cp $AUX/app.xml $APPS/$name/app.xml |
| 10 | touch $APPS/$name/active |
| 11 | [ -f $AUX/app.png ] && cp $AUX/app.png $APPS/$name/app.png |
| 12 | cp $AUX/*.oar $APPS/$name/$name.oar |
| 13 | cp -rf $AUX/m2/* $KARAF_M2 |
| 14 | rm -fr $AUX |
| 15 | done |