ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@mad.scientist.com
Subject [Patch] Pedantic mode for Jikes
Date Mon, 31 Jul 2000 07:23:17 GMT

Hi,

yet another property that controls compiler behaviour :/

Cheers,

Pete

*--------------------------------------------------*
| Latrobe University,     |                        |
| Bundoora, Australia     | Does the name 'Pavlov' |
| Office: PW220           |    ring a bell ?       |
| Ex: 2503                |                        |
*--------------------------------------------------*

Index: src/main/org/apache/tools/ant/taskdefs/Javac.java
===================================================================
RCS
file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
retrieving revision 1.26
diff -r1.26 Javac.java
692a693,707
>        /**
>         * Jikes can issue pedantic warnings. 
>         */
>        boolean pedantic = false;
>        String pedanticProperty =
project.getProperty("build.compiler.pedantic");
>        if (pedanticProperty != null &&
>            (pedanticProperty.equalsIgnoreCase("on") ||
>             pedanticProperty.equalsIgnoreCase("true"))
>            ) {
>            pedantic = true;
>        }
> 
>        if (pedantic)
>            argList.addElement("+P");
> 


Mime
View raw message