Skip to content
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

Add cmd.-line opt. to take optional warn. prop. file #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RolKau
Copy link

@RolKau RolKau commented Jun 27, 2022

When the Eclipse Java Language Server analyze a multi-module Maven
project, the lack of a .settings/org.eclipse.jdt.core.prefs file in
some of the modules is silently ignored, as if this file existed but
simply had no contents.

Attempting to recreate this effect when compiling the same project
with the Eclipse Java batch compiler, for instance by using the
org.codehaus.plexus:plexus-compiler-eclipse add-on to the
maven-compiler-plugin, and passing -properties as compilerArgs, is not
possible, because the compiler will emit an error on those projects
which do not have a warnings property file.

This patch introduce an -optprops command-line option, which has the
same semantics as the -properties option, except that missing files
are silently ignored. By specifying this in the root POM, the entire
project may be compiled with the Eclipse Java compiler without having
to commit an empty warnings properties file in each of the
sub-modules.

When the Eclipse Java Language Server analyze a multi-module Maven
project, the lack of a .settings/org.eclipse.jdt.core.prefs file in
some of the modules is silently ignored, as if this file existed but
simply had no contents.

Attempting to recreate this effect when compiling the same project
with the Eclipse Java batch compiler, for instance by using the
org.codehaus.plexus:plexus-compiler-eclipse add-on to the
maven-compiler-plugin, and passing -properties as compilerArgs, is not
possible, because the compiler will emit an error on those projects
which do not have a warnings property file.

This patch introduce an -optprops command-line option, which has the
same semantics as the -properties option, except that missing files
are silently ignored. By specifying this in the root POM, the entire
project may be compiled with the Eclipse Java compiler without having
to commit an empty warnings properties file in each of the
sub-modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant