You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Erik Hatcher <ja...@ehatchersolutions.com> on 2002/05/14 02:49:19 UTC

Re: Ant 1.5 Beta 1 -- change to available.setFile()

Cross-posting to ant-dev (probably better to bring up these types of issues
over there anyway)....

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" <bp...@amberpoint.com>
To: <an...@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:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>