ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9079] New: - Incompatible change to Available.setFile()
Date Tue, 14 May 2002 19:40:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9079>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9079

Incompatible change to Available.setFile()

           Summary: Incompatible change to Available.setFile()
           Product: Ant
           Version: 1.5Beta1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: bpendleton@amberpoint.com


I consider this a bug breaking backwards API compatibility.  Please file a
bug report with Bugzilla for this issue so we can address during the beta
cycle (feel free to submit a patch to add it back if you want too! :)

    Erik


----- Original Message -----
From: "Bryan Pendleton" <bpendleton@amberpoint.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, May 13, 2002 6:04 PM
Subject: Ant 1.5 Beta 1 -- change to available.setFile()


>
> In 1.4.1, org.apache.tools.taskdefs.Available had a
> setFile method with the signature:
>
>   public void setFile(java.io.File)
>
> in 1.5Beta1, this method has the signature
>
>   public void setFile(java.lang.String)
>
> I have an Ant task that I wrote against 1.4.1 which
> contains the code
>
>   avail = (Available)initTask("available");
>   ...
>   File   dirFile  = new File(current);
>   ...
>   avail.setFile(dirFile);
>
> But this code refuses to compile with Ant 1.5. I
> get the error:
>
>     [javac]
> C:\Bryan\sandbox\main\retools\anttasks\src\com\amberpoint\anttasks\O
> ptionalSubDir.java:81: setFile(java.lang.String) in
> org.apache.tools.ant.taskdef
> s.Available cannot be applied to (java.io.File)
>     [javac]             avail.setFile(dirFile);
>     [javac]                  ^
>     [javac] 1 error
>
> Is there a simple way to modify my custom Ant task
> so that it can compile correctly against both Ant 1.4
> and Ant 1.5?
>
> thanks,
>
> bryan
>

--
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