Ecore2Java not working from CLI [message #425521] |
Sat, 29 November 2008 11:40 |
Eclipse User |
|
|
|
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 |
Ed Merks Messages: 33142 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 |
Eclipse User |
|
|
|
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 |
Ed Merks Messages: 33142 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03256 seconds