Community
Participate
Working Groups
When the source folder that contains Xtend classes is itself not located in the project root (like in Maven style project layout), the default "xtend-gen" folder is placed next to the source folder. I would expect that the default location of the would be relative to the project root. To reproduce: - Create a Plugin project - Replace the source folder /src by a source folder /src/main/java - Create an Xtend class => The Xtend class will be compiled to src/main/xtend-gen instead of /xtend-gen
That's intended behavior, which allows to have multiple afferent tend target folders per project. In Maven for instance you'd have a target folder for test and one for main.
I encountered the same behaviour and wonder if it's conform to the standard maven folder structure. By default generated sources are located in ${project.build.directory}/generated-sources/${plugin-prefix} Those source files are not distinguished between main and test. I refer to this post by John Casey: http://mail-archives.apache.org/mod_mbox/maven-users/200512.mbox/%3C43A0689F.7020708@yahoo.com%3E
Bug #402957 is the preferred solution.
Requested via bug 522520. -M.