blob: bc708177d2184bebf94ba84ce20304d87b010bfa [file] [log] [blame]
alshabib7db13562017-01-09 21:21:34 -08001touch $APPS/org.onosproject.openflow-base/active
2
3find $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
15done