Skip to main content



      Home
Home » Modeling » EMF » Model Directory outside the workspace directory
Model Directory outside the workspace directory [message #414422] Tue, 06 November 2007 09:20 Go to next message
Eclipse UserFriend
Hello,

the Model Directory property of the genmodel controls
the location into which model code is generated. Is this
directory always relative to the workspace root?

I am using the org.eclipse.emf.examples.generator.validator
example and would like to generate code/text
that is in an arbitrary directory/URI.
E.g. file:/c:/someDirectory/

Is this possible? How?

Regards,

Reinhold
Re: Model Directory outside the workspace directory [message #414425 is a reply to message #414422] Tue, 06 November 2007 09:49 Go to previous messageGo to next message
Eclipse UserFriend
Reinhold,

When generating while running as an Eclipse application the code will
generally expect this to be a workspace relative path. Note that you
can create a project that's physically located anywhere in the file
system, so with that approach, create a project called someDirectory
that's located at c:/someDirectory, you could achieve the goal. I think
you generally should be generating into the workspace when running as an
Eclipse application...


Reinhold Bihler wrote:
> Hello,
>
> the Model Directory property of the genmodel controls
> the location into which model code is generated. Is this
> directory always relative to the workspace root?
>
> I am using the org.eclipse.emf.examples.generator.validator
> example and would like to generate code/text
> that is in an arbitrary directory/URI.
> E.g. file:/c:/someDirectory/
>
> Is this possible? How?
>
> Regards,
>
> Reinhold
>
>
>
>
Re: Model Directory outside the workspace directory [message #414426 is a reply to message #414425] Tue, 06 November 2007 10:13 Go to previous message
Eclipse UserFriend
Thanks Ed,

the workaround with the project outside of the workspace directory
will do for now. When generating code or project files for other
IDEs than eclipse it would have been nice to specify an arbitrary
directory/URI (e.g. the workspace of the non eclipse IDE) without
a detour.

Regards,

Reinhold

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fgpupe$lao$1@build.eclipse.org...
> Reinhold,
>
> When generating while running as an Eclipse application the code will
> generally expect this to be a workspace relative path. Note that you can
> create a project that's physically located anywhere in the file system, so
> with that approach, create a project called someDirectory that's located
> at c:/someDirectory, you could achieve the goal. I think you generally
> should be generating into the workspace when running as an Eclipse
> application...
>
>
> Reinhold Bihler wrote:
>> Hello,
>>
>> the Model Directory property of the genmodel controls
>> the location into which model code is generated. Is this
>> directory always relative to the workspace root?
>>
>> I am using the org.eclipse.emf.examples.generator.validator
>> example and would like to generate code/text
>> that is in an arbitrary directory/URI.
>> E.g. file:/c:/someDirectory/
>>
>> Is this possible? How?
>>
>> Regards,
>>
>> Reinhold
>>
>>
>>
>>
Previous Topic:[EMF Resource] can resource save give a non well-formed xml file ?
Next Topic:Referencing attribute of target class in message of OCL Constraint
Goto Forum:
  


Current Time: Wed Jul 02 03:30:43 EDT 2025

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

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

Back to the top