ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/util DateUtilsTest.java
Date Tue, 19 Feb 2002 10:39:25 GMT
On Tue, 19 Feb 2002 18:51, bodewig@apache.org wrote:
>        public void setFile(File file) {
>   -        log("DEPRECATED - The file attribute has been renamed destfile."
>   -            +" This attribute will be unsupported before Ant1.5 is
> released", +        log("DEPRECATED - The file attribute has been renamed
> destfile.", +            Project.MSG_ERR);
>   +        log("This attribute will be unsupported before Ant1.5 is
> released.", +            Project.MSG_ERR);
>   +
>   +        log("Be aware that the effect of using the file attribute
> depends on", Project.MSG_ERR);
>   +        log("the phase of the moon.", Project.MSG_WARN);
>   +        int phase = DateUtils.getPhaseOfMoon(Calendar.getInstance());
>   +        if (phase == 4) {
>   +            log("You are lucky!  Full moon tonight.");
>   +        } else if (phase == 0) {
>   +            log("Be careful!  New moon tonight.", Project.MSG_WARN);
>   +        }
>   +
>            setDestFile(file);

-1 for reasons already stated.

-- 
Cheers,

Pete

--------------------------------------------------------------
"Science is like sex: sometimes something useful comes out, 
but that is not the reason we are doing it" -- Richard Feynman
--------------------------------------------------------------

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


Mime
View raw message