This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARGS="$@" | |
set ARTIFACT= | |
for f in $(git status -s | cut -c 4- | cut -d/ -f1 - | sort -u) | |
do | |
if [ -d ${f} ] # must be a directory | |
then | |
if [ "${ARTIFACT}" == "" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (this.args.length != 2) | |
throw new IllegalArgumentException('Please pass two property files') | |
def base = new Properties() | |
def target = new Properties() | |
new File(".", this.args[0]).withInputStream { | |
stream -> base.load(stream) | |
} | |
new File(".", this.args[1]).withInputStream { | |
stream -> target.load(stream) |