Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341646

Summary: xml files not processed if Acceleo stored template as binary emtl
Product: [Modeling] Acceleo Reporter: Rainer Menke <rainer>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: rainer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rainer Menke CLA 2011-04-01 11:58:12 EDT
Build Identifier: S201103231016 - (Acceleo 3.1.0M6a)

I implemented a Acceleo template for processing xml files. I defined a ecore model based on the xsd of the xml file. Even the other stuff was implemented ( ContentTypeToFactoryMap, ExtensionToFactoryMap, PackageRegistry-put ). If I apply a small template on the xml file (Acceleo Plugin Application), it works, iff the 
Acceleo Compiler options for the resource kind are defined as XMI. It fails if the options are defined as binary. 

The issue seems to be in findTemplate of the AcceleoService, in the case if the template is stored in XMI a template will we found with generateElement(ExportType), if it is stored binary a template will be found with generateElement(null).


Reproducible: Always

Steps to Reproduce:
1.) Define a xml file
2.) Extract xsd and add targetNamespace="xxx" xmlns:yyy="xxx"
3.) Generate genmodel from xsd
4.) Generate model code 
5.) define contenttype factory and other things required but Acceleo to find the Factory
6.) Generate a small template in Acceleo
7.) Switch the Acceleo compiler options to XMI 
8.) Run the template -> everthing works fine
9.) Switch the Acceleo compiler options to binary
10.) RUn the template -> nothing happens
Comment 1 Rainer Menke CLA 2011-05-22 13:08:59 EDT
TRied to reproduce it, with another example. But everthing worked as expected.