Skip to content
Browse files

Remove cached jars when swapping the Scala compiler in an existing Ec…

…lipse instance.
  • Loading branch information...
1 parent 24a4734 commit 5ebb0ce62a5981956e317b6694122a24529246de @dragos dragos committed Mar 2, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 update-scala.sh
View
5 update-scala.sh
@@ -119,6 +119,11 @@ function update_jar() {
jar uvmf /tmp/manf $latest_file -C $base_dir $1
rm /tmp/manf
+
+ cached_lib=`find $eclipse_dir -iname scala-$2.jar`
+ cached_dir=`dirname $cached_lib`
+ echo -e "Removing cached version in $cached_dir"
+ rm -rf $cached_dir
}

0 comments on commit 5ebb0ce

Please sign in to comment.
Something went wrong with that request. Please try again.