Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Calling build from Java

Hi Andre,

You may use one of the build() methods of the
org.eclipse.core.resources.IProject interface.

You can obtain the IProject given the project name in the following way:

IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = (IProject)root.findMember(projectName);

Regards,
Mikhail


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Andre-John Mas
Sent: Thursday, November 30, 2006 2:48 AM
To: CDT General developers list.
Subject: [cdt-dev] Calling build from Java

Hi,

We are wanting to build our project using a headless version of  
Eclipse. So far all our
efforts fail at some point. For this reason we are wanting to create  
a small plugin that
we could use for this purpose. Is there any way of calling the build  
clean and build
project using the public API?

Andre
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top