Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341646 - xml files not processed if Acceleo stored template as binary emtl
Summary: xml files not processed if Acceleo stored template as binary emtl
Status: CLOSED INVALID
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 11:58 EDT by Rainer Menke CLA
Modified: 2011-05-22 13:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.