ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: <classpath> element unnecessary, but how to compile with -deprecation?
Date Sun, 25 Aug 2002 01:32:08 GMT
RTFM:  http://jakarta.apache.org/ant/manual/CoreTasks/javac.html

Note the 'deprecation' attribute, which defaults to off.

	Erik

garrett smith wrote:
> It found the jar files with just this:
> 
> <project name="login" default="build" basedir=".">
>     <target name="build" >
>         <javac srcdir="."
>             debug="true"
>            optimize="false"
>             includes="**/*.java"
>             />
>     </target>
> </project>
> 
> 
> But I have another question: How do I use -deprecation? 
> 
> see:
> 
> localhost# $ANT_HOME/bin/ant
> Buildfile: build.xml
> 
> build:
>     [javac] Compiling 7 source files
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
> 
> BUILD SUCCESSFUL
> 
> Total time: 7 seconds
> localhost# $ANT_HOME/bin/ant -deprecation
> Unknown argument: -deprecation
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message