Closed datho7561 closed 1 year ago
I've only tested this with a Maven project. I guess it would be incorrect in a different way for a Gradle project.
@fbricon @angelozerr This isn't a regression, it's just very difficult to locate the folder that the project's code is in using the JDT APIs, since resource folders are hard to distinguish from Java source folders, and it's hard to tell if a Java source folder is for generated sources.
What are your thoughts about disabling this quick fix until we have some sort of UI to specify the name and location of the class file when creating it?
for now, I'd check if there's a src/main/java source folder in the project classpath. Then exclude all source folders where the test attribute (IClasspathManager.TEST_ATTRIBUTE) is set to "true"
|
: "Create template extension sandwich() in new template extensions class"Expected: a new file
TemplateExtensions.java
is generated insrc/main/java
(the default package)Actual: the file is generated in
src/main/resources