diff options
author | CNlucius <lukai1@huawei.com> | 2016-09-13 11:40:12 +0800 |
---|---|---|
committer | CNlucius <lukai1@huawei.com> | 2016-09-13 11:41:53 +0800 |
commit | b731e2f1dd0972409b136aebc7b463dd72c9cfad (patch) | |
tree | 5107d7d80c19ad8076c2c97c2b5ef8d1cf3ab903 /framework/src/onos/tools/dev/bin/onos-create-app | |
parent | ee93993458266114c29271a481ef9ce7ce621b2a (diff) |
ONOSFW-171
O/S-SFC-ONOS scenario documentation
Change-Id: I51ae1cf736ea24ab6680f8edca1b2bf5dd598365
Signed-off-by: CNlucius <lukai1@huawei.com>
Diffstat (limited to 'framework/src/onos/tools/dev/bin/onos-create-app')
-rwxr-xr-x | framework/src/onos/tools/dev/bin/onos-create-app | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/framework/src/onos/tools/dev/bin/onos-create-app b/framework/src/onos/tools/dev/bin/onos-create-app deleted file mode 100755 index 454bcd6e..00000000 --- a/framework/src/onos/tools/dev/bin/onos-create-app +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# Tool to create an application from scratch using ONOS Maven archetypes. -# ----------------------------------------------------------------------------- - -[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 -. $ONOS_ROOT/tools/build/envDefaults - -type=${1:-bundle} - -[ $type = app ] && archetype=bundle || archetype=$type - -if [ "$1" = "-?" -o "$1" = "-h" -o "$1" = "--help" ]; then - echo "usage: $(basename $0) {app|bundle|ui|uitab|uitopo|cli|api} groupId artifactId version package mvn-options" - echo " All arguments are optional" - exit 1 -fi - -otherOptions="" -[ -n "$1" ] && shift -[ -n "$1" ] && otherOptions="$otherOptions -DgroupId=$1" && shift -[ -n "$1" ] && otherOptions="$otherOptions -DartifactId=$1" && dir=$1 && shift -[ -n "$1" ] && otherOptions="$otherOptions -Dversion=$1" && shift -[ -n "$1" ] && otherOptions="$otherOptions -Dpackage=$1" && shift - -mvn archetype:generate -DarchetypeGroupId=org.onosproject \ - -DarchetypeArtifactId=onos-$archetype-archetype \ - -DarchetypeVersion=$ONOS_POM_VERSION $otherOptions "$@" - -# Patch the pom.xml file to make this an app. -if [ $type = app ]; then - # We need to add a few lines to the pom.xml to make this an app - if [ -n "$dir" ] && [ -d $dir ]; then - egrep -v " (<!--|-->)" $dir/pom.xml > $dir/pom.app.xml - mv $dir/pom.app.xml $dir/pom.xml - else - echo - echo "IMPORTANT:" - echo "To build the application, you need to uncomment the 'onos.app.name' and 'onos.app.origin' properties in the pom.xml" - echo - fi -fi |