Bug 343238 - [Dev] ant emtlCopy runs in a loop (Acceleo)
Summary: [Dev] ant emtlCopy runs in a loop (Acceleo)
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Main (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 322635
Blocks:
  Show dependency tree
 
Reported: 2011-04-19 03:40 EDT by Nicolas Bros CLA
Modified: 2011-09-28 16:30 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 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