String projectName = project.getName();
	public void run(IProgressMonitor monitor) throws SVNException {		// Determine if the repository is known		boolean alreadyExists = SVNProviderPlugin.getPlugin().getRepositories()				.isKnownRepository(location.getLocation());		try {			// Get the import properties			String projectName = project.getName();			final ISVNClientAdapter svnClient = location.getSVNClient();			// perform the workspace modifications in a runnable            SVNProviderPlugin.run(new ISVNRunnable() {    				public void run(IProgressMonitor pm) throws SVNException {							String message = Policy									.bind("SVNProvider.initialImport"); //$NON-NLS-1$							try {								// create the remote dir								SVNUrl url = location.getUrl().appendPath(remoteDirName);								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);							}							// SharingWizard.doesSVNDirectoryExist calls							// getStatus on the folder which populates the							// status cache							// Need to clear the cache so we can get the new							// hasRemote value							SVNProviderPlugin.getPlugin()									.getStatusCacheManager().refreshStatus(											project, IResource.DEPTH_INFINITE);							try {								//Register it with Team. 								RepositoryProvider.map(project, SVNProviderPlugin										.getTypeId());							} catch (TeamException e) {								throw new SVNException("Cannot register project with svn provider",e);							}					}				}, monitor);		} catch (SVNException 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);	}