Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2011-11-07 13:14:34 -0500
committerIgor Fedorenko2011-11-07 13:14:34 -0500
commit3d354e58f72f7385ed8a3f817cedec61106d32c1 (patch)
tree7e11355fda11d7697577fc0606eb78f8097618b0
parente27ce7897641681fabf6eebeacdb90a7e9014277 (diff)
downloadm2e-core-3d354e58f72f7385ed8a3f817cedec61106d32c1.tar.gz
m2e-core-3d354e58f72f7385ed8a3f817cedec61106d32c1.tar.xz
m2e-core-3d354e58f72f7385ed8a3f817cedec61106d32c1.zip
360962 preserver forbiddenReference JDT preference set by User
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
index 246786ea..b711fa06 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/AbstractJavaProjectConfigurator.java
@@ -486,7 +486,12 @@ public abstract class AbstractJavaProjectConfigurator extends AbstractProjectCon
options.put(JavaCore.COMPILER_SOURCE, source);
options.put(JavaCore.COMPILER_COMPLIANCE, source);
options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, target);
- options.put(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE, "warning"); //$NON-NLS-1$
+
+ // 360962 keep forbidden_reference severity set by the user
+ IJavaProject jp = JavaCore.create(request.getProject());
+ if(jp != null && jp.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE, false) == null) {
+ options.put(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE, "warning"); //$NON-NLS-1$
+ }
}
protected List<MojoExecution> getCompilerMojoExecutions(ProjectConfigurationRequest request, IProgressMonitor monitor)

Back to the top