Hi !
concerning your question please verify your build properties in plugin.xml 
properties and check that you export your bin folder.
can you check unzipping your .jar and verify if there is the emtl inside it ?
Concerning your template as you have checked importedByDefault="true" you don't 
need to type the import in your context tag.

Regards
Tristan FAURE



========================================
Date du message : nov. 25 2010, 10:07 AM
De : "Topcased user list where issues are discussed" 
A : "[email protected]" 
Copie : 
Sujet : [Topcased-users] [Gendoc2] Bundle import problem

Hello,

I've deployed an acceleo bundle, like in the tutorial, but still have the 
following error :
"The execution of a script failed: Cannot find operation (getABSTRACT()) for 
the type (Experience)"
See below for details of (BUNDLE, plugin.xml and GENDOC template)

- What do I miss ?
- Do you have a sample java code that lists the content of a deployed bundle 
(to test, in the eclipse application where this bundle is deployed, what, 
exactly, can be seen inside the bundle) ?
- That I've tested the query in an acceleo template, and it works

Thank you for your help
Regards


THE BUNDLE :
[module cv_auto('http://my.cv_auto/cv/1.2.0')/]
[query public getABSTRACT(a : Experience) : Sequence(TextualItem) = 
self.subElements->select(e | e.oclIsKindOf(TextualItem))
.oclAsType(TextualItem)
->select(ti | ti.kind = SpecialItemKind::ABSTRACT)
/]

Plugin.xml extract :
point="org.topcased.gendoc2.script.acceleo.services">
emtl="bin/my/cv_auto/m2t/gendoc/bundle/files/cv_auto.emtl"
importedByDefault="true"
name="cv_auto">



GENDOC TEMPLATE EXTRACT :


[for (e : Experience | self.categories->select(oclIsTypeOf(Experience)))]
[if self.getABSTRACT()->size() <> 0]


Cédric GAVA
Friend of eclipse




_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to