From 943fc8d59c9ba5bf4e710aa026d58439a7dc82f8 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Tue, 21 Feb 2006 17:59:37 +0000 Subject: [PATCH] PR: MPJAVA-44 New property maven.compile.nowarn. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@379547 13f79535-47bb-0310-9956-ffa450edef68 --- java/plugin.jelly | 1 + java/plugin.properties | 1 + java/xdocs/changes.xml | 1 + java/xdocs/properties.xml | 17 ++++++++++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/java/plugin.jelly b/java/plugin.jelly index 5355c0d1..4885a3bd 100644 --- a/java/plugin.jelly +++ b/java/plugin.jelly @@ -70,6 +70,7 @@ destdir="${maven.build.dest}" excludes="**/package.html" debug="${maven.compile.debug}" + nowarn="${maven.compile.nowarn}" deprecation="${maven.compile.deprecation}" optimize="${maven.compile.optimize}"> diff --git a/java/plugin.properties b/java/plugin.properties index 0b895aa8..da58d3d4 100644 --- a/java/plugin.properties +++ b/java/plugin.properties @@ -20,3 +20,4 @@ maven.compile.log=${maven.build.dir}/compile.log maven.compile.deprecation=on +maven.compile.nowarn=off diff --git a/java/xdocs/changes.xml b/java/xdocs/changes.xml index 8efc2a4d..fd63dd67 100644 --- a/java/xdocs/changes.xml +++ b/java/xdocs/changes.xml @@ -26,6 +26,7 @@ + New property maven.compile.nowarn. Set maven.compile.deprecation=on by default. Compiling gives incorrect warning about target JVM version. sourceModifications handled incorrectly when more than one clause present. diff --git a/java/xdocs/properties.xml b/java/xdocs/properties.xml index 82eba746..5e6a7b2c 100644 --- a/java/xdocs/properties.xml +++ b/java/xdocs/properties.xml @@ -58,7 +58,7 @@ Yes Specifies wether source should be compiled with deprecation - information; the default value is off. + information; the default value is on. Used by the "java:compile" goal. @@ -225,6 +225,21 @@ include classes from compilation depending on whether a named class is available + + maven.compile.nowarn + Yes + +

+ Indicates whether the -nowarn switch should be passed + to the compiler; defaults to off. +

+

+ Corresponds to the nowarn attribute for the ant + javac + task. +

+ +