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

Bug 336109

Summary: Unhelpful definition of MODULE_FILE_NAME
Product: [Modeling] Acceleo Reporter: Ed Willink <ed>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2011-02-02 12:28:52 EST
MODULE_FILE_NAME is currently auto-generated as a simple name such as

public static final String MODULE_FILE_NAME = "generateXtextVisitors";

This is unhelpful because if a subclass of GenerateXtextVisitors is created, findModuleURL fails to find the module since it is unable to locate the bin path.

If instead the definition is e.g.

public static final String MODULE_FILE_NAME = "/org/eclipse/ocl/examples/build/acceleo/generateXtextVisitors";

findModuleURL continues to work regardless of the location of the generator class.
Comment 1 Stephane Begaudeau CLA 2011-04-06 09:56:08 EDT
The fix has been contributed on HEAD. It will be available in Acceleo 3.1.0M7.