Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Jet2 Build bad Directive taglib(JET2 Build Taglib Directive)
icon7.gif  Jet2 Build bad Directive taglib [message #1221653] Wed, 18 December 2013 07:04
liang zaoqing is currently offline liang zaoqingFriend
Messages: 1
Registered: December 2013
Junior Member
I want to use jet2 in a Java Application, then i create a java project, and change the java project into JET project through new->project->Java Emitter Templates->Convert Project to JET Project, and then set the template src directory, then i create a new template file named main.jet,the content is below:

<%@ jet package="translated" class="ExampleTranslate" %>
hello world!!!

it can build the template file to in src/translated directory, but when i insert a taglib tag

<%@ jet package="translated" imports="java.util.* org.eclipse.emf.examples.jet.article2.model.*" class="TypeSafeEnumeration" %>
<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
hello world!!!

it cannot build, the error message is below:
Errors occurred during the build.
Errors running builder 'JET Builder' on project 'org.eclipse.emf.examples.jet.article2'.
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1
Bad directive in 'TypeSafeEnumeration.javajet' at line 2 column 1

how i import the taglib in Jet project?

Previous Topic:[Xpand] loop with separator ,
Next Topic:[Xpand] generating code to socket stream not to file in secondary storage
Goto Forum:

Current Time: Tue Feb 27 15:12:55 GMT 2024

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

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

Back to the top