-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java output directory is prepending src #287
Comments
Uhh, this is kind of awkward and I tend to agree with you now. Originally, it was more or less organized like that due to tests compilation, as it is kind of useful to have src/ and bin/ separately, and it kind of matches IDEA/Eclipse requirements on basic dirs. However, probably the time has come to reconsider that decision and move forward. One thing that stops me is how to make it somehow compatible with current implementation. I wonder if stuff like |
I also suffer from the hard coded source output. I end up running a batch file that generates the sources, and then copies them into the correct folder for my project. |
@GreyCat Another option would be to add a flag, something like --no-src-prefix that disables that current default behavior, as I'm not sure someone would really want to use a prefix other than 'src', that they wouldn't just place into the out-dir parameter. You could also indicate that the 'src' prefix is deprecated and schedule removing that behavior entirely for a future release. |
Well, to be frank, probably nobody would ever use |
This is a problem for me as well, because even though I am only generating java classes, because of the multi-language-nature of my Maven project, they need to go into |
Java and Got seem to be the only languages prepending "src" to their output directories, which make them fail in case a Maven-like directory tree with "src/main/java" is used. "java" itself needs to be the source folder already, not "java/src". Additonally its easy for users to add paths on their own, but difficult to remove those added by KS. Like has been disucssed in the correpsonding issue, "src" keeps getting added in case "--target all" is given, which is most likely only the case for tests and those use a dir structure of "java/bin|src", where that makes sense. kaitai-io/kaitai_struct#287
Java and Got seem to be the only languages prepending "src" to their output directories, which make them fail in case a Maven-like directory tree with "src/main/java" is used. "java" itself needs to be the source folder already, not "java/src". Additonally its easy for users to add paths on their own, but difficult to remove those added by KS. Like has been disucssed in the correpsonding issue, "src" keeps getting added in case "--target all" is given, which is most likely only the case for tests and those use a dir structure of "java/bin|src", where that makes sense. kaitai-io/kaitai_struct#287
Original was submitted by @daviderickson in #1201:
The text was updated successfully, but these errors were encountered: