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

Bug 343238

Summary: [Dev] ant emtlCopy runs in a loop (Acceleo)
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: MainAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P5 CC: gdupe
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 322635    
Bug Blocks:    

Description Nicolas Bros CLA 2011-04-19 03:40:48 EDT
To workaround the impossibility to use the Acceleo compiler headlessly (Bug 322635), MoDisco projects which use Acceleo have an ant script that copies the emtl files back and forth.

But I noticed while configuring the script for "org.eclipse.modisco.java.discoverer.benchmark" that it runs continuously when mtl files are modified : 
- Acceleo compiles the files
- the ant builder detects a change in the bin directory
- it copies the emtl files from "bin" to "emtl"
- the Acceleo builder detects a change in the project and it rebuilds the files
- the ant builder detects a change in the bin directory
- etc.

Sometimes it stops after a few builds, sometimes it continues this way for a long time. So, there appears to be a race condition between the builders.

Note that I saw the problem because I checked "allocate console" while configuring the emtl launch configuration on the builder. This option is disabled on the other projects.
Comment 1 Nicolas Bros CLA 2011-04-19 05:45:19 EDT
Note: this would effectively be a non-issue if we didn't have to copy the EMT files. So, I'm marking this bug as dependent on Bug 322635 - Acceleo headless builder.
Comment 2 Gregoire Dupe CLA 2011-09-28 11:18:36 EDT
No emergency => P5