ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: my local version of <copy> supports filesystem resources now
Date Wed, 28 Sep 2005 19:50:58 GMT
--- Stefan Bodewig <bodewig@apache.org> wrote:

> On Wed, 28 Sep 2005, Matt Benson
> <gudnabrsam@yahoo.com> wrote:
> 
> > :) I had started working on apply but hadn't
> gotten
> > too far.  I'd like to see what you did.
> 
> I pretty much doubt that it will work for non-file
> resources, but at
> least it works fine for
> 
> <apply executable="ls">
>   <path path="${env.PATH}"/>
> </apply>

Maybe some add'l code for up-to-date checking, but
aside from the fact that the constructed command line
may or may not be valid, which is always an issue,
replace srcfile's getAbsolutePath() with "source
resource".toString() and we should be in business,
IMO.

-Matt
> 
> >> I added a new protected method to Expand for
> non-file resources,
> >> maybe an approach like that will work for other
> tasks as well.
> > 
> > I'll have to see it.
> 
> I'll commit it right now without specific unit tests
> or updating the
> docs.  At least the existing tests still pass.
> 
> Stefan
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> dev-help@ant.apache.org
> 
> 



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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


Mime
View raw message