Skip to main content

Xlint not working with Ant task?

1 reply [Last post]
aldaris
Offline
Joined: 2009-07-22
Points: 0

Create the following build.xml:
<project>
<target name="build" >
<javac destdir="classes">
<src path="src"/>
<compilerarg value="-Xlint:none " />
</javac>
</target>
</project>

Now when you try to compile the source code with JDK 7-ea b133 you get the following error:
[javac] javac: invalid flag: -Xlint:none
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options

The very same build.xml works flawlessly with JDK 1.6.
Is this an Ant incompatibility issue or a bug?

Thanks,
Peter

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aldaris
Offline
Joined: 2009-07-22
Points: 0

Ok, let's put it this way:
Did the javac command line interface changed? Can that cause this problem?

Thanks,
Peter