-
Notifications
You must be signed in to change notification settings - Fork 61
Don't create javac.[sh|bat]
or org.codehaus.plexus.compiler.javac.JavacCompiler*arguments
in target/*classes
#165
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
Comments
I second that. I would expect the same resulting package regardless of whether debugging is enabled or not. |
zregvart
added a commit
to zregvart/plexus-compiler
that referenced
this issue
Dec 17, 2021
With this the arguments and `java.[sh|bat` files will be created in the build directory (usually `target`), rather than in the output directory (usually `target/classes`). Fixes codehaus-plexus#165
zregvart
added a commit
to zregvart/plexus-compiler
that referenced
this issue
Dec 17, 2021
With this the arguments and `java.[sh|bat` files will be created in the build directory (usually `target`), rather than in the output directory (usually `target/classes`). Fixes codehaus-plexus#165
zregvart
added a commit
to zregvart/plexus-compiler
that referenced
this issue
Dec 17, 2021
With this the arguments and `java.[sh|bat` files will be created in the build directory (usually `target`), rather than in the output directory (usually `target/classes`). Fixes codehaus-plexus#165
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When debug logging is turned on Javac Plexus compiler creates two additional files in
target/classes
ortarget/test-classes
. These files will be also included in the built artifact, say a JAR file.This is done here:
plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Lines 597 to 598 in f410363
And here:
plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Lines 991 to 992 in f410363
Seems that the calls to
config.getOutputLocation()
need to be replaced withconfig.getBuildDirectory()
in those two instances.The text was updated successfully, but these errors were encountered: