Create project in headless mode [message #68843] |
Thu, 23 July 2009 00:49 |
Eclipse User |
|
|
|
Originally posted by: lionelv_.gmail.com
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02814 seconds