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
tom
2014-10-01 14:58:32 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1cd74ae73df1e27293ebe891d0b69e942da72b0a
1cd74ae7
1 parent
ea961ffc
Added onos-build-selective & obs short-hand.
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
4 deletions
tools/dev/bash_profile
tools/dev/bin/onos-build-selective
tools/dev/bin/onos-build-selective-hook
tools/dev/watchLog → tools/dev/bin/onos-local-log
tools/dev/bash_profile
View file @
1cd74ae
...
...
@@ -12,9 +12,8 @@ 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/build"
export
PATH
=
"
$PATH
:
$ONOS_ROOT
/tools/test/bin"
export
PATH
=
"
$PATH
:
$ONOS_ROOT
/tools/dev/bin:
$ONOS_ROOT
/tools/test/bin"
export
PATH
=
"
$PATH
:
$ONOS_ROOT
/tools/build"
export
PATH
=
"
$PATH
:
$MAVEN
/bin:
$KARAF
/bin"
export
PATH
=
"
$PATH
:."
...
...
@@ -30,11 +29,12 @@ alias mci='mvn clean install'
# Short-hand for ONOS build, package and test.
alias
ob
=
'onos-build'
alias
obs
=
'onos-build-selective'
alias
op
=
'onos-package'
alias
ot
=
'onos-test'
# Short-hand for tailing the ONOS (karaf) log
alias
tl
=
'$ONOS_ROOT/tools/dev/
watchL
og'
alias
tl
=
'$ONOS_ROOT/tools/dev/
bin/onos-local-l
og'
alias
tlo
=
'tl | grep --colour=always org.onlab'
# Pretty-print JSON output
...
...
tools/dev/bin/onos-build-selective
0 → 100755
View file @
1cd74ae
#!/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
}
\ No newline at end of file
tools/dev/bin/onos-build-selective-hook
0 → 100755
View file @
1cd74ae
#------------------------------------------------------------------------------
# Echoes project-level directory if a Java file within is newer than its
# class file counterpart
#------------------------------------------------------------------------------
javaFile=${1#*\/src\/*\/java/}
basename=${1/*\//}
[ $basename = "package-info.java" ] && exit 0
src=${1/$javaFile/}
project=${src/src*/}
classFile=${javaFile/.java/.class}
[ ${project}target/classes/$classFile -nt ${src}$javaFile -o \
${project}target/test-classes/$classFile -nt ${src}$javaFile ] \
|| echo ${src/src*/}
tools/dev/
watchL
og
→
tools/dev/
bin/onos-local-l
og
View file @
1cd74ae
File moved
Please
register
or
login
to post a comment