Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
alshabib
2014-09-13 17:42:10 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ec94a58f439feed009af3d78c39daed3f27f8927
ec94a58f
2 parents
d58d3521
6a9f272e
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
tools/dev/bash_profile
tools/dev/bash_profile
0 → 100644
View file @
ec94a58
#!/bin/bash
# ONOS developer BASH profile conveniences
# Root of the ONOS source tree
export
ONOS_ROOT
=
${
ONOS_ROOT
:-
~/onos-next
}
# Setup some environmental context for developers
export
JAVA_HOME
=
$(
/usr/libexec/java_home
)
export
MAVEN
=
${
MAVEN
:-
~/Applications/apache-maven-3.2.2
}
export
KARAF
=
${
KARAF
:-
~/Applications/apache-karaf-3.0.1
}
export
KARAF_LOG
=
$KARAF
/data/log/karaf.log
# Setup a path
export
PS
=
":"
export
PATH
=
"
$PATH
:
$ONOS_ROOT
/tools/dev;
$ONOS_ROOT
/tools/package"
export
PATH
=
"
$PATH
:
$MAVEN
/bin:
$KARAF
/bin"
export
PATH
=
"
$PATH
:."
# Convenience utility to warp to various ONOS source projects
# e.g. 'o api', 'o dev', 'o'
function
o
{
cd
$(
find
$ONOS_ROOT
/ -type d | egrep -v
'.git|target|src'
|
\
egrep
"
${
1
:-
$ONOS_ROOT
}
"
| head -n 1
)
}
# Short-hand for 'mvn clean install' for us lazy folk
alias
mci
=
'mvn clean install'
# Short-hand for ONOS build from the top of the source tree.
alias
ob
=
'o && mvn clean install javadoc:aggregate'
# Short-hand for tailing the ONOS (karaf) log
alias
tl
=
'$ONOS_ROOT/tools/dev/watchLog'
alias
tlo
=
'tl | grep --colour=always org.onlab'
# Pretty-print JSON output
alias
pp
=
'python -m json.tool'
# Short-hand to launch API docs and sample topology viewer GUI
alias
docs
=
'open $ONOS_ROOT/target/site/apidocs/index.html'
alias
gui
=
'open http://localhost:8181/onos/tvue'
Please
register
or
login
to post a comment