Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » creating java project programmatically
creating java project programmatically [message #326904] Wed, 02 April 2008 23:10 Go to next message
Eclipse UserFriend
Originally posted by: sureshpendap.gmail.com

I have a set of eclipse projects with .project and the .classpath files on
the filesystem. I would like import thse projects into a new workspace
programatically (something similar to new --> java project --> import from
existing source in the eclipse workbench). It would be better if the
source is not literally copied into the workspace directory.

Is it possible to acheive the above task programmatically. I googled for
some solution but all the links provide ways of creating fresh java
projects programmatically.
Re: importing existing java project programmatically [message #326907 is a reply to message #326904] Wed, 02 April 2008 23:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sureshpendap.gmail.com

updated the subject to reflect appropriately my question
Re: importing existing java project programmatically [message #326909 is a reply to message #326907] Wed, 02 April 2008 23:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Suresh,

Using org.eclipse.ui.wizards.datatransfer.ImportOperation might help.


Suresh Pendap wrote:
> updated the subject to reflect appropriately my question
>
Re: importing existing java project programmatically [message #326916 is a reply to message #326909] Thu, 03 April 2008 02:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sureshpendap.gmail.com

I would like to import this in an Eclipse application which would be
running from the command line. Can i still use the Import wizard mentioned
above?
Re: importing existing java project programmatically [message #326918 is a reply to message #326909] Thu, 03 April 2008 02:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sureshpendap.gmail.com

I do not want to show the UI. Basically i have the eclipse projects
checked into our source code control system (which is not standard). I
want to automate the build process which would

1. check out the source code
2. create an eclipse workspace by importing these projects (by linking not
actually copying) into the workspace
3. Build the workspace.

All the above tasks need to be automated and laucnched from the
commandline. So the import wizards might not solve my purpose.
Re: importing existing java project programmatically [message #326920 is a reply to message #326909] Thu, 03 April 2008 03:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sureshpendap.gmail.com

I do not want to launch a UI. I would like to automate the build process
which would check out the projects from our source code control system
(which is not standard like cvs etc) and then create the workspace and
import the projects programmatically and then build the workspace with no
user intervention.
Re: importing existing java project programmatically [message #326933 is a reply to message #326920] Thu, 03 April 2008 12:23 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Suresh,

Have you looked at PDE builder and at Eclipse's support for Ant tasks?


Suresh Pendap wrote:
> I do not want to launch a UI. I would like to automate the build
> process which would check out the projects from our source code
> control system (which is not standard like cvs etc) and then create
> the workspace and import the projects programmatically and then build
> the workspace with no user intervention.
>
Previous Topic:CommonNavigator, LinkHelper
Next Topic:Questions about Sections and Forms and how to delegate actions to them
Goto Forum:
  


Current Time: Wed Jul 03 18:21:27 GMT 2024

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

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

Back to the top