Rework how gradle.properties is handled
authorColin P. Mccabe <colin@cmccabe.xyz>
Wed, 22 Nov 2017 18:05:37 +0000 (10:05 -0800)
committerColin P. Mccabe <colin@cmccabe.xyz>
Wed, 22 Nov 2017 18:05:37 +0000 (10:05 -0800)
Since gradle keeps a lot of temporary junk in the .gradle directory, we
don't want that directory to be a symlink into our git repo.

.gradle.properties [moved from .gradle/gradle.properties with 100% similarity]
install-symlinks.sh

similarity index 100%
rename from .gradle/gradle.properties
rename to .gradle.properties
index 820d5b3..3ca68a4 100755 (executable)
@@ -41,7 +41,7 @@ for file in ${BASEDIR}/.[^.]*; do
        # skip files which we don't want to link
        [ "${basefile}" == ".git" ] && continue
        [ "${basefile}" == ".gitignore" ] && continue
-       #[ "${basefile}" == ".ssh" ] && continue
+       [ "${basefile}" == ".ssh" ] && continue
 
        pushd .. > /dev/null
        if [ -L ${basefile} ]; then
@@ -65,3 +65,10 @@ if [ $copy_ssh_old -eq 1 ]; then
     echo "chmod 600 ../.ssh/config"
     chmod 600 ../.ssh/*
 fi
+
+# Install .gradle/.gradle.properties
+mkdir -p ../.gradle
+pushd ../.gradle
+rm -f ./gradle.properties
+ln -s ../.gradle.properties  ./gradle.properties 
+popd