Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324538 - [Duplicate] emf.Ecore2Java: Code Generation of Project is not working correctly
Summary: [Duplicate] emf.Ecore2Java: Code Generation of Project is not working correctly
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Tools (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Steinberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 320472
Blocks:
  Show dependency tree
 
Reported: 2010-09-05 12:30 EDT by Ed Merks CLA
Modified: 2010-11-05 05:41 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 Ed Merks CLA 2010-09-05 12:30:34 EDT
+++ This bug was initially created as a clone of Bug #320472 +++

Build Identifier: 20100617-1415

The specification of generateEditorProject="true" for the emf.Ecore2Java task has no effect (no code is generate) unless you also specify generateTestsProject="true". Value of property generateTestsProject has no effect on the generation of Tests project. Tests project is always created if command line argument -testsProject is specified.

Reproducible: Always

Steps to Reproduce:
1. Generate Ant File
<project name="project" default="test1" basedir=".">
	<target name="test1">
		<emf.Ecore2Java
			model="model.ecore"
			genModel="model.genmodel"
			generateModelProject="true"
			generateEditProject="true"
			generateEditorProject="true"
			generateJavaCode="true"
			autoBuild="true"
			jdklevel="6.0">
			<arg line="-modelProject project src-gen"/>
			<arg line="-editProject project.edit src"/>
			<arg line="-editorProject project.editor src"/>
			<arg line="-validateModel true"/>
			<arg line="-package nsURI"/>
		</emf.Ecore2Java>
	</target>

	<target name="test2">
		<emf.Ecore2Java
			model="model.ecore"
			genModel="model.genmodel"
			generateModelProject="true"
			generateEditProject="true"
			generateEditorProject="true"
			generateTestsProject="false"
			generateJavaCode="true"
			autoBuild="true"
			jdklevel="6.0">
			<arg line="-modelProject project src-gen"/>
			<arg line="-editProject project.edit src"/>
			<arg line="-editorProject project.editor src"/>
			<arg line="-testsProject project.tests src"/>
			<arg line="-validateModel true"/>
			<arg line="-package nsURI"/>
		</emf.Ecore2Java>
	</target>
</project>
2. Execute test1 task. Resulting in no code generation for Editor project.
3. Execute test2 task. Resulting in code generation of Editor and Tests project.
Comment 1 Ed Merks CLA 2010-09-05 12:33:44 EDT
The fix is committed to CVS for 2.7.
Comment 2 Ed Merks CLA 2010-11-05 05:41:29 EDT
The fix is available in the latest build for the stream.