Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore2Java not working from CLI
Ecore2Java not working from CLI [message #425521] Sat, 29 November 2008 11:40 Go to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Hi,

I want to start the EMF generator from the command line, but somehow it
always writes the generated java files in the wrong directory (using the
Ecore2Java ant task as well as using the Generator application). From
within Eclipse, I have no problem using the ant task Ecore2Java. Using
the Generator application within Eclipse writes the generated java files
as well to the wrong directory. It seems that the whole generator thing
is very sensitive to path names (relative or absolute), current
workspace, etc. Are the parameters in the Ecore2Java, in the Generator
application and also in the genmodel (e.g. the model directory) absolute
or relative?

Thanks for any information
Luzi
Re: Ecore2Java not working from CLI [message #425522 is a reply to message #425521] Sat, 29 November 2008 13:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Luzi,

Comments below.

Luzi Anderegg wrote:
> Hi,
>
> I want to start the EMF generator from the command line, but somehow
> it always writes the generated java files in the wrong directory
> (using the Ecore2Java ant task as well as using the Generator
> application).
How are you specifying the directory?
> From within Eclipse, I have no problem using the ant task Ecore2Java.
> Using the Generator application within Eclipse writes the generated
> java files as well to the wrong directory. It seems that the whole
> generator thing is very sensitive to path names (relative or
> absolute), current workspace, etc.
Of course. When running within Eclipse relative paths have meaning
relative to the workspace, but without a workspace, that's not so clear.
> Are the parameters in the Ecore2Java, in the Generator application and
> also in the genmodel (e.g. the model directory) absolute or relative?
When they are absolute, they have absolute meaning that's always the
same. When they are relative, they will be interpreted in a way
relative to the running context either relative to the workspace or as a
path relative to the current working directory.
>
> Thanks for any information
> Luzi


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore2Java not working from CLI [message #425586 is a reply to message #425522] Tue, 02 December 2008 16:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Ed Merks wrote:
> Luzi,
>
> Comments below.
>
> Luzi Anderegg wrote:
>> Hi,
>>
>> I want to start the EMF generator from the command line, but somehow
>> it always writes the generated java files in the wrong directory
>> (using the Ecore2Java ant task as well as using the Generator
>> application).
> How are you specifying the directory?
I tried it in many different ways. Has the current working directory in
my CLI also some influence?
>> From within Eclipse, I have no problem using the ant task Ecore2Java.
>> Using the Generator application within Eclipse writes the generated
>> java files as well to the wrong directory. It seems that the whole
>> generator thing is very sensitive to path names (relative or
>> absolute), current workspace, etc.
> Of course. When running within Eclipse relative paths have meaning
> relative to the workspace, but without a workspace, that's not so clear.
>> Are the parameters in the Ecore2Java, in the Generator application and
>> also in the genmodel (e.g. the model directory) absolute or relative?
> When they are absolute, they have absolute meaning that's always the
> same. When they are relative, they will be interpreted in a way
> relative to the running context either relative to the workspace or as a
> path relative to the current working directory.
>>
>> Thanks for any information
>> Luzi
Re: Ecore2Java not working from CLI [message #425589 is a reply to message #425586] Tue, 02 December 2008 16:43 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Luzi,

Comments below.


Luzi Anderegg wrote:
> Ed Merks wrote:
>> Luzi,
>>
>> Comments below.
>>
>> Luzi Anderegg wrote:
>>> Hi,
>>>
>>> I want to start the EMF generator from the command line, but somehow
>>> it always writes the generated java files in the wrong directory
>>> (using the Ecore2Java ant task as well as using the Generator
>>> application).
>> How are you specifying the directory?
> I tried it in many different ways. Has the current working directory
> in my CLI also some influence?
That's what I said below, right?
>>> From within Eclipse, I have no problem using the ant task
>>> Ecore2Java. Using the Generator application within Eclipse writes
>>> the generated java files as well to the wrong directory. It seems
>>> that the whole generator thing is very sensitive to path names
>>> (relative or absolute), current workspace, etc.
>> Of course. When running within Eclipse relative paths have meaning
>> relative to the workspace, but without a workspace, that's not so clear.
>>> Are the parameters in the Ecore2Java, in the Generator application
>>> and also in the genmodel (e.g. the model directory) absolute or
>>> relative?
>> When they are absolute, they have absolute meaning that's always the
>> same. When they are relative, they will be interpreted in a way
>> relative to the running context either relative to the workspace or
>> as a path relative to the current working directory.
>>>
>>> Thanks for any information
>>> Luzi


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:CDO Loading packages at activation time
Next Topic:Containment
Goto Forum:
  


Current Time: Thu Apr 25 14:00:42 GMT 2024

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

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

Back to the top