@@ -77,7 +77,7 @@ pushJarFile() {
77
77
local remote_uri=${version}${jar# $basedir }
78
78
echo " Pushing to ${remote_urlbase} /${remote_uri} ..."
79
79
echo " $curl "
80
- local curl= $( curlUpload $remote_uri $jar_name $user $pw )
80
+ curlUpload $remote_uri $jar_name $user $pw
81
81
echo " Making new sha1 file ...."
82
82
echo " $jar_sha1 " > " ${jar_name}${desired_ext} "
83
83
popd > /dev/null
@@ -112,14 +112,20 @@ pushJarFiles() {
112
112
local password=$3
113
113
# TODO - ignore target/ and build/
114
114
local jarFiles=" $( find ${basedir} /lib -name " *.jar" ) $( find ${basedir} /test/files -name " *.jar" ) "
115
+ local changed=" no"
115
116
for jar in $jarFiles ; do
116
117
local valid=$( isJarFileValid $jar )
117
118
if [[ " $valid " != " OK" ]]; then
118
119
echo " $jar has changed, pushing changes...."
120
+ changed=" yes"
119
121
pushJarFile $jar $basedir $user $password
120
122
fi
121
123
done
122
- echo " Binary changes have been pushed. You may now submit the new *${desired_ext} files to git."
124
+ if test " $changed " == " no" ; then
125
+ echo " No jars have been changed."
126
+ else
127
+ echo " Binary changes have been pushed. You may now submit the new *${desired_ext} files to git."
128
+ fi
123
129
}
124
130
125
131
# Pulls a single binary artifact from a remote repository.
@@ -141,7 +147,7 @@ pullJarFile() {
141
147
# Argument 1 - The directory to search for *.desired.sha1 files that need to be retrieved.
142
148
pullJarFiles () {
143
149
local basedir=$1
144
- local desiredFiles=" $( find ${basedir} /lib -name * ${desired_ext} ) $( find ${basedir} /test/files -name * ${desired_ext} ) "
150
+ local desiredFiles=" $( find ${basedir} /lib -name * ${desired_ext} ) $( find ${basedir} /test/files -name * ${desired_ext} ) $( find ${basedir} /tools -name * ${desired_ext} ) "
145
151
for sha in $desiredFiles ; do
146
152
jar=${sha% $desired_ext }
147
153
local valid=$( isJarFileValid $jar )
0 commit comments