How to solve the Eclipse's endless "Subversion Connector Discovery" proglem

Sometimes Eclipse keeps complaining "Subversion Connector Discovery", no matter which options you choose.

Here is the script to solve this problem. Based on this article.

Build a sh with the script and run it with the directory of workspace or just run it under the directory workspace.

#!/bin/bash

SED=/bin/sed
WK_PATH=$(/bin/pwd)

if [[ -n "$1" ]];
then
	WK_PATH=$1
fi

echo "work path=$WK_PATH"

FILE=.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
PATH=$WK_PATH/$FILE
SRC=org\.eclipse\.team\.svn\.ui\.decorator\.SVNLightweightDecorator\\\\:true
DST=org\.eclipse\.team\.svn\.ui\.decorator\.SVNLightweightDecorator\\\\:false


if [ -f $PATH ];
then
	$SED s/${SRC}/${DST}/ $PATH
else
	echo "Not found file at path: $PATH"
fi




你可能感兴趣的:(eclipse,subversion,Discovery,connector)