You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by garrett smith <ja...@yahoo.com> on 2002/08/25 03:24:38 UTC
Re: element unnecessary, but how to compile with -deprecation?
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: element unnecessary, but how to compile with -deprecation?
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>