SVNWorkspaceRoot.getSVNResourceFor(project);
	public static void shareProject(final ISVNRepositoryLocation location, final IProject project, String remoteDirName, IProgressMonitor monitor) throws TeamException {				// Determine if the repository is known		boolean alreadyExists = SVNProviderPlugin.getPlugin().getRepositories().isKnownRepository(location.getLocation());		        // Set the folder sync info of the project to point to the remote module		SVNWorkspaceRoot.getSVNResourceFor(project);					try {			// Get the import properties			String projectName = project.getName();			if (remoteDirName == null)				remoteDirName = projectName;            final ISVNClientAdapter svnClient = location.getSVNClient();					// perform the workspace modifications in a runnable			try {				final TeamException[] exception = new TeamException[] {null};				final String dirName = remoteDirName;				ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {					public void run(IProgressMonitor monitor){						try {                            String message = Policy.bind("SVNProvider.initialImport"); //$NON-NLS-1$                                                        try {                                // create the remote dir                                SVNUrl url = new SVNUrl(Util.appendPath(location.getUrl().toString(),dirName));                                svnClient.mkdir(url,message);                                                                // checkout it so that we have .svn                                svnClient.checkout(url,project.getLocation().toFile(),SVNRevision.HEAD,false);                            } catch (SVNClientException e) {                                throw new SVNException("Error while creating module:"+e.getMessage(),e);                              } catch (MalformedURLException e) {                                throw new SVNException("Error while creating module: "+e.getMessage(),e);                            }                                                       							//Register it with Team.  If it already is, no harm done.							RepositoryProvider.map(project, SVNProviderPlugin.getTypeId());						} catch (TeamException e) {							exception[0] = e;						}					}				}, monitor);				if (exception[0] != null)					throw exception[0];			} catch (CoreException e) {				throw SVNException.wrapException(e);			}		} catch (TeamException e) {			// The checkout may have triggered password caching			// Therefore, if this is a newly created location, we want to clear its cache			if ( ! alreadyExists)				SVNProviderPlugin.getPlugin().getRepositories().disposeRepository(location);			throw e;		}		// Add the repository if it didn't exist already		if ( ! alreadyExists)			SVNProviderPlugin.getPlugin().getRepositories().addOrUpdateRepository(location);	}