We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is currently not possible to pass argument files to javac like so:
javac
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <!-- NOPE! 😢 --> <arg>@somefile</arg> </compilerArgs> </configuration> </plugin>
The reason is that JavacCompiler creates its own temporary argument file, including @somefile but recursive @s are not supported by javac. The obvious (only?) solution would be to give the compiler a separate option for argument files that are not included into the temporary one, e.g:
JavacCompiler
@somefile
@
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <!-- strawman syntax! --> <compilerArgFiles> <argFile>@somefile</argFile> </compilerArgs> </configuration> </plugin>
The text was updated successfully, but these errors were encountered:
If that's helpful I could give this a shot myself. For that I would need advice which syntax to use. I can see two variants:
<configuration> <compilerArgFiles> <argFile>@foofile</argFile> <argFile>@barfile</argFile> </compilerArgs> </configuration>
<configuration> <compilerArgFiles>@foofile @barfile</compilerArgs> </configuration>
I assume the former is the way to go?
Sorry, something went wrong.
No branches or pull requests
It is currently not possible to pass argument files to
javac
like so:The reason is that
JavacCompiler
creates its own temporary argument file, including@somefile
but recursive@
s are not supported byjavac
. The obvious (only?) solution would be to give the compiler a separate option for argument files that are not included into the temporary one, e.g:The text was updated successfully, but these errors were encountered: