Skip to main content


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 14:32 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
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 07:03 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
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: Fri Apr 19 06:42:43 GMT 2024

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

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

Back to the top