Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » programmatically synchronize projects in workspace
programmatically synchronize projects in workspace [message #527537] Thu, 15 April 2010 10:32 Go to next message
Eclipse UserFriend
hello,
i am new to eclipse plugin development and no I have a problem synchronize all projects in workspace.
further I want to do these steps
- synchronize all projects in workspace
- call some ant targets
- rebuild whole workspace

Following code snipped get all projects from workspace


 IWorkspace root = ResourcesPlugin.getWorkspace();
 IProject[] projects = root.getRoot().getProjects();

 String[] nameOfProjects = new String[projects.length];

 for (int i = 0; i < projects.length; i++) {
    IProject project = projects[i];
    RepositoryProvider provider = RepositoryProvider.getProvider(project);

    // update project ????

    // clean and build
    project .build(IncrementalProjectBuilder.CLEAN_BUILD,
                                new SubProgressMonitor(monitor, 1));
    project .build(IncrementalProjectBuilder.FULL_BUILD,
                                new SubProgressMonitor(monitor, 1));



and now, how can i do a "svn up"(synchronize) to the whole content of the project?

thx dops
Re: programmatically synchronize projects in workspace [message #528057 is a reply to message #527537] Mon, 19 April 2010 03:03 Go to previous message
Eclipse UserFriend
can anybody help me please?
Previous Topic:Running different Eclipse versions
Next Topic:ERROR in org.eclipse.ui.examples.presentation.git
Goto Forum:
  


Current Time: Sun Apr 20 23:19:12 EDT 2025

Powered by FUDForum. Page generated in 0.03106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top