Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Jet directive not found
Jet directive not found [message #11379] Thu, 12 April 2007 04:04 Go to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

Hi,
Not sure what I changed but Im suddenly getting:-

Errors during build.
Errors running builder 'JET Builder' on project 'BusinessRuleJet'.
The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
column 12
The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
column 12

The changes I can think of are I created a new project and did the JET
transform project option.

The file mentioned above has not changed at all and if I delete it just says
the next one has the same issue.

Is there a problem in the fact it says the file twice ?

Any help would be great,

Stu
Re: Jet directive not found [message #11705 is a reply to message #11379] Fri, 13 April 2007 12:31 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Stu:

Sounds like you may have the EMF JET builder active on you project (it goes
by the name JET Builder - the "JET2" builder calls itself "JET Template
Builder").

Open the .project file in the root of BusinessRuleJet, and look for:

<buildSpec>
<buildCommand>
<name>org.eclipse.emf.codegen.JETBuilder</name>
<arguments>
</arguments>
</buildCommand>
...
</buildSpec>
<natures>
<nature>org.eclipse.emf.codegen.jet.IJETNature</nature>
...
</natures>

If you see these lines, remove the corresponding <buildCommand> and <nature>
elements.

Paul

"Stu" <evaandoli@dodo.com.au> wrote in message
news:evkb4m$mte$1@build.eclipse.org...
> Hi,
> Not sure what I changed but Im suddenly getting:-
>
> Errors during build.
> Errors running builder 'JET Builder' on project 'BusinessRuleJet'.
> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
> column 12
> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
> column 12
>
> The changes I can think of are I created a new project and did the JET
> transform project option.
>
> The file mentioned above has not changed at all and if I delete it just
> says the next one has the same issue.
>
> Is there a problem in the fact it says the file twice ?
>
> Any help would be great,
>
> Stu
>
Re: Jet directive not found [message #11740 is a reply to message #11705] Fri, 13 April 2007 12:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

Thanks mate,

So if I have a GMF project and I want it also to be a JET Project how do I
do that ?
I used the Transform Project to Jet Eclipse Other option which I think
caused this issue.




"Paul Elder" <pelder@ca.ibm.com> wrote in message
news:evnt82$2fd$1@build.eclipse.org...
> Stu:
>
> Sounds like you may have the EMF JET builder active on you project (it
> goes by the name JET Builder - the "JET2" builder calls itself "JET
> Template Builder").
>
> Open the .project file in the root of BusinessRuleJet, and look for:
>
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.emf.codegen.JETBuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> <natures>
> <nature>org.eclipse.emf.codegen.jet.IJETNature</nature>
> ...
> </natures>
>
> If you see these lines, remove the corresponding <buildCommand> and
> <nature> elements.
>
> Paul
>
> "Stu" <evaandoli@dodo.com.au> wrote in message
> news:evkb4m$mte$1@build.eclipse.org...
>> Hi,
>> Not sure what I changed but Im suddenly getting:-
>>
>> Errors during build.
>> Errors running builder 'JET Builder' on project 'BusinessRuleJet'.
>> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
>> column 12
>> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
>> column 12
>>
>> The changes I can think of are I created a new project and did the JET
>> transform project option.
>>
>> The file mentioned above has not changed at all and if I delete it just
>> says the next one has the same issue.
>>
>> Is there a problem in the fact it says the file twice ?
>>
>> Any help would be great,
>>
>> Stu
>>
>
>
Re: Jet directive not found [message #12943 is a reply to message #11740] Wed, 18 April 2007 13:09 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Stu:

Short answer:

JET projects were designed to be separate plug-ins. Life will be simpler if
the JET project is separate from the GMF one.

Some of the design logic:

A lot of the motivation of a template-based code generator is that you can
allow users to provide their own implementations of some of the templates.
In JET, this is done by creating a JET project that 'overrides' another. The
consumer of the original JET project can then be redirected to use the
overriding one. While not entirely compelling, this does argue that the code
generator should be a separate module (aka plug-ing) in the system.

Doing it anyway:

There isn't a EMFT JET wizard to install the builder and nature into an
existing plug-in project. You'll have to do it manually. The best approach
is to create a JET project, and then copy the values out of that project's
..project file into you hybred project. You want two things:

1) within the <buildSpec> element, you'll need

<buildCommand>
<name>org.eclipse.jet.builder</name>
<arguments>
</arguments>
</buildCommand>

This should be before the Java builder

2) within the <natures. element, you'll need

<nature>org.eclipse.jet.jet2Nature</nature>

Position isn't important on this one.

Paul

"Stu" <evaandoli@dodo.com.au> wrote in message
news:evnuir$5gd$1@build.eclipse.org...
> Thanks mate,
>
> So if I have a GMF project and I want it also to be a JET Project how do I
> do that ?
> I used the Transform Project to Jet Eclipse Other option which I think
> caused this issue.
>
>
>
>
> "Paul Elder" <pelder@ca.ibm.com> wrote in message
> news:evnt82$2fd$1@build.eclipse.org...
>> Stu:
>>
>> Sounds like you may have the EMF JET builder active on you project (it
>> goes by the name JET Builder - the "JET2" builder calls itself "JET
>> Template Builder").
>>
>> Open the .project file in the root of BusinessRuleJet, and look for:
>>
>> <buildSpec>
>> <buildCommand>
>> <name>org.eclipse.emf.codegen.JETBuilder</name>
>> <arguments>
>> </arguments>
>> </buildCommand>
>> ...
>> </buildSpec>
>> <natures>
>> <nature>org.eclipse.emf.codegen.jet.IJETNature</nature>
>> ...
>> </natures>
>>
>> If you see these lines, remove the corresponding <buildCommand> and
>> <nature> elements.
>>
>> Paul
>>
>> "Stu" <evaandoli@dodo.com.au> wrote in message
>> news:evkb4m$mte$1@build.eclipse.org...
>>> Hi,
>>> Not sure what I changed but Im suddenly getting:-
>>>
>>> Errors during build.
>>> Errors running builder 'JET Builder' on project 'BusinessRuleJet'.
>>> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
>>> column 12
>>> The 'jet' directive is missing in '1-1-createAttributes.jet' at line 26
>>> column 12
>>>
>>> The changes I can think of are I created a new project and did the JET
>>> transform project option.
>>>
>>> The file mentioned above has not changed at all and if I delete it just
>>> says the next one has the same issue.
>>>
>>> Is there a problem in the fact it says the file twice ?
>>>
>>> Any help would be great,
>>>
>>> Stu
>>>
>>
>>
>
>
Previous Topic:Re: Remove whitespaces from generation
Next Topic:Invoking JET2 from within code
Goto Forum:
  


Current Time: Sat Aug 31 22:45:05 GMT 2024

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

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

Back to the top