Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333405 - Generated source files always in src folder too?
Summary: Generated source files always in src folder too?
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Jet (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 05:06 EST by Stephan Zehrer CLA
Modified: 2020-05-01 16:11 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 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.