ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Ant 1.5 Beta 1 -- change to available.setFile()
Date Tue, 14 May 2002 00:49:19 GMT
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" <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-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


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