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

Bug 333405

Summary: Generated source files always in src folder too?
Product: z_Archived Reporter: Stephan Zehrer <eclipse>
Component: JetAssignee: Project Inbox <m2t.jet-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: pelder.eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Stephan Zehrer CLA 2011-01-03 05:06:34 EST
Build Identifier: 20100917-0705

Always i open a jet file with the "JET - Java Emitter Template Editor" it generates a template class in the src folder.

Is this my fault to use the wrong editor?
Do i mix up JET 1 and JET 2 components?


Reproducible: Always

Steps to Reproduce:
1. Create JET Transformation Project
2. Crate ad add the folder "src" to the  java build path.
3. Change in the JET Compiler settings the template folder to "srcjet"
4. delete the jet2java source folder
5. add a "Helloworld.txtjet" file to the template folder and open it.
6 the java template code is generated in the source folder not in the srcjet folder

it seems it uses the first src folder in the project.
I got similar behavior if i convert a java project to a JET Project. 
But it seems this a other kind of JET Project (seems older just 2 settings).

The source of  Helloworld.txtjet is just
<%@ jet package="hello" class="HelloWorldTemplate" %>

 Hello, world!
Comment 1 Stephan Zehrer CLA 2011-01-03 05:15:15 EST
Now i can confirm it is related to the source folder order.
The editor generate just in the first source folder in the list. 
I tested it by change the source folder order under java build path settings.