ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Walker <twal...@merc-int.com>
Subject RE: Delete and File Properties
Date Thu, 13 Jun 2002 20:33:00 GMT
Erik,

You rock like Slayer. 

Using Delete.java as a guideline...my attribDelete.java was point and click. I needed to add
only the if
(f.canWrite()) to that part of removeFiles() and log those that I did not delete as confirmation.
Works GREAT.


My only remaining question...

Shouldn't the Delete task operate like this by default? Or, at least have a delete attribute
supported like
"don't_delete_read_only_files=true". 

Thanks again Erik. 

--
Tim Walker
Senior Software Engineer
twalker@freshwater.com
Freshwater Software
303-443-2266 ex. 6505
Looking for Answers to your SiteScope or SiteSeer questions?
http://www.freshwater.com/support/search.htm


-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
Sent: Thursday, June 13, 2002 1:41 PM
To: Ant Users List
Subject: Re: Delete and File Properties

----- Original Message -----
From: "Tim Walker" <twalker@merc-int.com>

> Hmmm...thanks...a better question, I guess, is...
>
> Is the documentation:
>
> http://jakarta.apache.org/ant/manual/
>
> Acceptable for something as fundamental as this ? Trying to implement a
task based solely on this
> documentation led me to these assumptions.

Well, in all fairness, the documentation is geared primarily towards Ant
users.  The best source of information on how to develop Ant tasks will
always be, well, Ant's own source code.

And the answers to the setter and TaskContainer issues were on the
developing page:
http://jakarta.apache.org/ant/manual/develop.html#writingowntask

Granted there is lots of room for improvement there.  But....

> I'll have to track down a good reference. Any come to mind ?

Why yes, and I'm glad you asked!  :)

    http://www.amazon.com/exec/obidos/ASIN/1930110588

We have one chapter dedicated to writing custom tasks, and another that has
info on writing custom selectors, FilterReaders, mappers, listeners, and
loggers. At some point our publisher will post some chapters online at
http://www.manning.com/antbook/ but they aren't there yet - and I haven't a
clue which ones will be made available for free as samples.  Proofreader is
reading our stuff now, so we are well on our way to having it in print soon.

    Erik



--
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-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message