Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Missing name Missing name is currently offline Missing name Missing name
Messages: 10
Registered: April 2010
Junior Member
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
Missing name Missing name is currently offline Missing name Missing name
Messages: 10
Registered: April 2010
Junior Member
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: Sat Aug 23 15:59:30 EDT 2014

Powered by FUDForum. Page generated in 0.01833 seconds