Hi Antoine and Ivan,
Just tried the following:
<javac srcdir="${src}"
destdir="classes" >
<compilerarg value="-Xlint="unchecked""/>
</javac>
and this:
<javac deprecation="${deprecation}"
debug="${debug}" debuglevel="${debuglevel}">
<compilerarg line="-Xlint="unchecked""/>
</javac>
But recieve the following error:
C:\Documents and Settings\Ed Taylor\My Documents\Builds\JManagerBuild>ant
Buildfile: build.xml
init:
compile:
[javac] Compiling 30 source files to C:\Documents and Settings\Ed Taylor\My
Documents\Builds\JManagerBuild\classes
[javac] javac: invalid flag: -Xlint="unchecked"
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the
compiler is doing
[javac] -deprecation Output source locations where
deprecated APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -cp <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source
files
[javac] -bootclasspath <path> Override location of bootstrap class
files
[javac] -extdirs <dirs> Override location of installed
extensions
[javac] -endorseddirs <dirs> Override location of endorsed
standards path
[javac] -d <directory> Specify where to place generated class
files
[javac] -encoding <encoding> Specify character encoding used by
source files
[javac] -source <release> Provide source compatibility with
specified release
[javac] -target <release> Generate class files for specific VM
version
[javac] -version Version information
[javac] -help Print a synopsis of standard options
[javac] -X Print a synopsis of nonstandard options
[javac] -J<flag> Pass <flag> directly to the runtime
system
I think something else is wrong beause if I execute (javac -version), I recive
the following error also:
javac -version
javac 1.5.0
javac: no source files
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are
used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system