Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Create project in headless mode
Create project in headless mode [message #599827] Thu, 23 July 2009 04:49
Lionel is currently offline LionelFriend
Messages: 31
Registered: July 2009
Member
Hi,

I'm currently trying to figure out the call to generate source code using
the emf task org.eclipse.emf.importer.ecore.Generator. One requirement is
that I won't have an existing workspace or project. So there are two steps
that I see, first I must create the workspace and project, then I can run
the generator. The closest I have got is to create the project with the
org.eclipse.emf.importer.ecore.Ecore2GenModel task. So a batch file that
looks similar to:

%ECLIPSE_DIR%\eclipsec.exe -noSplash -debug -clean -data
%WORKSPACE% -application org.eclipse.emf.importer.ecore.Ecore2GenModel
.../Model/Model.ecore ../Model/Model.EcoretoJava.genmodel -modelProject
%PROJECT% ../Source/Model

%ECLIPSE_DIR%\eclipsec.exe -noSplash -debug -clean -data
%WORKSPACE% -application org.eclipse.emf.codegen.ecore.Generator -projects
%PROJECT% -model ../Model/Model.EcoretoJava.genmodel

I struggle getting the paths right for the first command, I have not idea
what the base directory is for each path that is required, it seems to be
different for each path in the arguments. Anyway, the second command works
fine, but the first command, even when I do have it working, causes some
issues. The main thing is that I have an existing genmodel and I have
changed some properties in there, but when it gets generated those
properties are lost!!!!!! argh. So ideally I would like to skip the first
step altogether, so really that leaves a simple question, how can I make
just a normal empty project in eclipse headless mode, I get the feeling if I
can do this then I can get the second command working nicely.

Thanks

Lionel.
Previous Topic:Create project in headless mode
Next Topic:pde build with ant doesn't embed launcher anymore since 3.5
Goto Forum:
  


Current Time: Fri Apr 26 18:26:28 GMT 2024

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

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

Back to the top