You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Magesh Umasankar <um...@rediffmail.com> on 2002/01/02 15:47:45 UTC

Re: cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Expand.java

On Sat, 29 Dec 2001 Steve Loughran wrote :

Received this mail just now, hence the delayed reply.

> Magesh,

> In particular, here are some of the implications of 
> moving to SrcDir and DestDir
> 
> 1. where exceptions get thrown has moved.
> 2. the exception messages change, which can break tests
> 3. we are potentially tightening up the rules of 
> validity. Which is good,
> but it runs a risk of people coming back from the 
> crimble break and
> discovering their builds no longer work.

I agree with 1, but not necessarily with 2 & 3.  While
refactoring, I have made sure we didn't have code that
checked a specific build exception message.  Also,
I made sure I didn't alter current behaviour in any way.

> I fear your changes to Expand have broken peoples 
> build. The tasks' dest can be a directory or a file; 
> the task behaves appropriately. Your change to the
> task now only lets a destination directory be selected.

No, it wouldn't have broken any build.  Expand has always
been recognizing only directories as valid dest attrs.
I guess this is what you referred to in your other email
about you having confused Expand with Unpack?

> build files will be a test, and I shall await tonights 
> GUMP build with curiousity.

It didn't break anything, as I expected.

> Also, please leave jar,zip,war,ear alone. I have 
> changed them on this box, but the tests need 
> improvement before I am prepared to commit the changes.

I won't touch them ;-)

Magesh
 


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