Sun, 24 Sep 2023 20:01:14 +0200, /Thomas Broyer/:
ErrorProne itself doesn't support @file arguments, so I think the question
remains unanswered: can Maven load a property's value from a file?
(possibly through a plugin; I have looked at build-helper-maven-plugin and
apparently it doesn't support
On Sun, Sep 24, 2023 at 7:49 PM Stanimir Stamenkov
wrote:
> I've just noticed you're providing multiple arguments in a single
> element – I'm not sure if this is supposed to work like that.
It is; this is how -Xplugin: works; those are arguments to the ErrorProne
plugins, not to javac itself:
Sun, 24 Sep 2023 18:04:51 +0200, /Delany/:
Thank you. Its not happening though. I also tried it from the pom, so
-Xplugin:ErrorProne
-XepExcludedPaths:.*/target/.* @${build.root}/ep.config
@files are Java 9+ feature for tools other than javadoc – just making
sure you're not using Java 8 here.
Thank you. Its not happening though. I also tried it from the pom, so
-Xplugin:ErrorProne
-XepExcludedPaths:.*/target/.* @${build.root}/ep.config
Made more difficult by lack of visibility what's going on with the javac
processors.
On Sun, 24 Sept 2023 at 16:23, Stanimir Stamenkov
wrote:
> [Wit
[With some more context from the original message.]
Sun, 24 Sep 2023 15:45:49 +0200, /Stanimir Stamenkov/:
Sun, 24 Sep 2023 15:45:49 +0200, /Delany/:
I can also quickly run a build to catch on issue
that I'm trying to eradicate by adding
-Dep="-XepDisableAllChecks -Xep:ReferenceEquality:ERROR
Sun, 24 Sep 2023 15:45:49 +0200, /Delany/:
[...]
Is there a way to specify these in a properties file and have each argument
on its own line?
Have you tried using @file (a-la javadoc options):
https://docs.oracle.com/en/java/javase/17/docs/specs/man/javac.html#command-line-argument-files
--
Hi,
Passing a few arguments to the compiler is done easily enough through the
pom,
but when there are many arguments it starts to gets hairy,
especially when I'm configuring a plugin in multiple levels of inheritance.
For example, there are many bugpatterns in errorprone
https://errorprone.info/d