Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Adding depdencies when creating JETTransformations
Adding depdencies when creating JETTransformations [message #52562] Mon, 25 September 2006 15:49 Go to next message
Kamesh Sampath is currently offline Kamesh SampathFriend
Messages: 191
Registered: July 2009
Senior Member
Hi,

Is there in anyway by which i can make my JET2Transformation add the
depencies automatically when i generate Java resources.

e.g
I am creating Struts Action classes I need my transformation to be able
to add those required depdencies in the Project path . Ofcourse I would
have configured the depdency path in Preferences of my workbench

I guess am asking too much of JET2 :-\ . but i feel that task of adding
dependency is logically associated with the Code and hence its linked to
Code generation ..

Thanks.

Kamesh
Re: Adding depdencies when creating JETTransformations [message #52616 is a reply to message #52562] Mon, 25 September 2006 17:39 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
When you use a code generator, everything starts to look like a text file
:-)

The easiest way to generate project references from a JET transformation is
to write a template that writes to .classpath in the project root.

Create a 'reference solution' with the project references you want, and then
create a template that generates that kind of .classpath file.

Paul

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:ef8tq6$rce$1@utils.eclipse.org...
> Hi,
>
> Is there in anyway by which i can make my JET2Transformation add the
> depencies automatically when i generate Java resources.
>
> e.g
> I am creating Struts Action classes I need my transformation to be able to
> add those required depdencies in the Project path . Ofcourse I would have
> configured the depdency path in Preferences of my workbench
>
> I guess am asking too much of JET2 :-\ . but i feel that task of adding
> dependency is logically associated with the Code and hence its linked to
> Code generation ..
>
> Thanks.
>
> Kamesh
Re: Adding depdencies when creating JETTransformations [message #591938 is a reply to message #52562] Mon, 25 September 2006 17:39 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
When you use a code generator, everything starts to look like a text file
:-)

The easiest way to generate project references from a JET transformation is
to write a template that writes to .classpath in the project root.

Create a 'reference solution' with the project references you want, and then
create a template that generates that kind of .classpath file.

Paul

"Kamesh Sampath" <kamesh_sampath@msn.com> wrote in message
news:ef8tq6$rce$1@utils.eclipse.org...
> Hi,
>
> Is there in anyway by which i can make my JET2Transformation add the
> depencies automatically when i generate Java resources.
>
> e.g
> I am creating Struts Action classes I need my transformation to be able to
> add those required depdencies in the Project path . Ofcourse I would have
> configured the depdency path in Preferences of my workbench
>
> I guess am asking too much of JET2 :-\ . but i feel that task of adding
> dependency is logically associated with the Code and hence its linked to
> Code generation ..
>
> Thanks.
>
> Kamesh
Previous Topic:CDO/Net4j Build Announcements
Next Topic:JET: EMF Resources & References in EMF Models
Goto Forum:
  


Current Time: Thu Apr 25 16:08:03 GMT 2024

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

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

Back to the top