Allow user to disable Javac deprecated messages with -Djava.deprecated=false
This commit is contained in:
parent
62e6f0a3d6
commit
ca03a6ec48
2 changed files with 8 additions and 4 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
<property name="servletjars.dir" location="${build.dir}/servletjars" />
|
||||
|
||||
<property name="javac.deprecation" value="true" />
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - -
|
||||
paths: for compiling and running
|
||||
- - - - - - - - - - - - - - - - - -->
|
||||
|
@ -217,7 +219,7 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
|||
<javac srcdir="${webapp.dir}/src"
|
||||
destdir="${war-classes.dir}"
|
||||
debug="true"
|
||||
deprecation="true"
|
||||
deprecation="${javac.deprecation}"
|
||||
encoding="UTF8"
|
||||
includeantruntime="false"
|
||||
optimize="true"
|
||||
|
@ -233,7 +235,7 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
|||
<javac srcdir="${webapp.dir}/test"
|
||||
destdir="${test-classes.dir}"
|
||||
debug="true"
|
||||
deprecation="true"
|
||||
deprecation="${javac.deprecation}"
|
||||
encoding="UTF8"
|
||||
includeantruntime="false"
|
||||
optimize="false"
|
||||
|
@ -268,7 +270,7 @@ deploy - Deploy the application directly into the Tomcat webapps directory.
|
|||
<javac srcdir="${webapp.dir}/../utilities/buildutils/revisioninfo"
|
||||
destdir="${test-classes.dir}"
|
||||
debug="true"
|
||||
deprecation="true"
|
||||
deprecation="${javac.deprecation}"
|
||||
encoding="UTF8"
|
||||
includeantruntime="false"
|
||||
optimize="false"
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
<property name="test-classes.dir" location="${build.dir}/testclasses" />
|
||||
<property name="servletjars.dir" location="${build.dir}/servletjars" />
|
||||
|
||||
<property name="javac.deprecation" value="true" />
|
||||
|
||||
|
||||
<!-- Is there a "src" directory in the product? -->
|
||||
<property name="product.source.dir" location="./src" />
|
||||
|
@ -141,7 +143,7 @@
|
|||
<javac srcdir="${product.source.dir}"
|
||||
destdir="${product.classes.dir}"
|
||||
debug="true"
|
||||
deprecation="true"
|
||||
deprecation="${javac.deprecation}"
|
||||
encoding="UTF8"
|
||||
includeantruntime="false"
|
||||
optimize="true"
|
||||
|
|
Loading…
Add table
Reference in a new issue