Hi Tritan, 

And thank you for your answer...

The bundle was tested by Launching an Eclipse Application...
When I exported the bundle as jar, and install it, then the operation worked
-> so there is a difference if you test a Bundle directly by running a new 
Eclipse Application or, creating the jar, installing it, and then use it...

Now I have a semantic problem with nested for, (I open a new subject for this)

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

Cédric GAVA
__________________________
On behalf of ALYOTECH
Subcontractor for AIRBUS EDYYLDT
Mail : [email protected]


-----Message d'origine-----
De : GAVA Cédric 
Envoyé : jeudi 25 novembre 2010 09:56
À : '[email protected]'
Objet : [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 :
   <extension
         point="org.topcased.gendoc2.script.acceleo.services">
      <service
            emtl="bin/my/cv_auto/m2t/gendoc/bundle/files/cv_auto.emtl"
            importedByDefault="true"
            name="cv_auto">
      </service>
   </extension>

GENDOC TEMPLATE EXTRACT :
<context model='${model}' searchMetamodels='true' 
importedBundles='cv_auto'/><drop/>
<gendoc><table><drop/>
[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

Reply via email to