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-08 20:21:23 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1a17eb47fe31ab6ef5231b37eeb067b7f2a225b0
1a17eb47
1 parent
43c4f3da
Fixed 'obs' to trigger when any Java source file is newer than the target directory.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
tools/dev/bin/onos-build-selective-hook
tools/dev/bin/onos-build-selective-hook
View file @
1a17eb4
#------------------------------------------------------------------------------
# Echoes project-level directory if a Java file within is newer than
its
#
class file counterpart
# Echoes project-level directory if a Java file within is newer than
the
#
target directory.
#------------------------------------------------------------------------------
javaFile=${1#*\/src\/*\/java/}
...
...
@@ -10,9 +10,7 @@ basename=${1/*\//}
src=${1/$javaFile/}
project=${src/src*/}
classFile=${javaFile/.java/.class}
target=$project/target
[ ${project}target/classes/$classFile -nt ${src}$javaFile -o \
${project}target/test-classes/$classFile -nt ${src}$javaFile ] \
|| echo ${src/src*/}
[ $target -nt ${src}$javaFile ] || echo ${src/src*/}
...
...
Please
register
or
login
to post a comment