Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Model Directory outside the workspace directory
Model Directory outside the workspace directory [message #414422] Tue, 06 November 2007 14:20 Go to next message
Reinhold Bihler is currently offline Reinhold BihlerFriend
Messages: 64
Registered: July 2009
Member
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 14:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
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
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Model Directory outside the workspace directory [message #414426 is a reply to message #414425] Tue, 06 November 2007 15:13 Go to previous message
Reinhold Bihler is currently offline Reinhold BihlerFriend
Messages: 64
Registered: July 2009
Member
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 Sep 25 11:48:49 GMT 2024

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

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

Back to the top