ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: [Patch] Pedantic mode for Jikes
Date Mon, 31 Jul 2000 13:43:02 GMT
Peter,

I think we should keep patches to the dev list.

Just one issue with this patch. Do we want to expand on the use of
build.compiler.* properties? I actually would like to get rid of them
altogether - too implicit for me.

Conor


> -----Original Message-----
> From: donaldp@mad.scientist.com [mailto:donaldp@mad.scientist.com]
> Sent: Monday, 31 July 2000 17:23
> To: ant-user@jakarta.apache.org
> Subject: [Patch] Pedantic mode for Jikes
>
>
>
> 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