Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » JET1 directive syntax
JET1 directive syntax [message #57551] Tue, 24 February 2009 15:56 Go to next message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
I am modifying the templates for Ecore generation.
I see that they contain include directives of the form

<@ include="foo.javajetinc" fail="alternative" %>
<%@ start %>
//emit standard code here
<%@end %>

and

<@include=foo2.javajetinc fail="silent" %>
//carry on emitting code

Can I assume that the fail="alternative" means
"If i cannot load the include, then perform the code between <%@start%>
<%@end%>, otherwise ignore it?

And fail="silent" means
"If I cannot load the include just ignore it and carry on immediately
after it?


Which seems to be what happens when my test example is compiled....
Re: JET1 directive syntax [message #57696 is a reply to message #57551] Wed, 25 February 2009 15:18 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
JF:

You summary is correct.

Paul

" JF" <jfrancis@his.co.uk> wrote in message
news:dafd7ed5ca7b2ebc90432aca91b16d8a$1@www.eclipse.org...
>I am modifying the templates for Ecore generation.
> I see that they contain include directives of the form
>
> <@ include="foo.javajetinc" fail="alternative" %>
> <%@ start %>
> //emit standard code here
> <%@end %>
>
> and
>
> <@include=foo2.javajetinc fail="silent" %>
> //carry on emitting code
>
> Can I assume that the fail="alternative" means "If i cannot load the
> include, then perform the code between <%@start%> <%@end%>, otherwise
> ignore it?
>
> And fail="silent" means "If I cannot load the include just ignore it and
> carry on immediately after it?
>
>
> Which seems to be what happens when my test example is compiled....
>
Previous Topic:[JET2] c:addElement and EList / Array
Next Topic:Conditional File Generation
Goto Forum:
  


Current Time: Thu Apr 25 08:40:50 GMT 2024

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

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

Back to the top