A great question!
i found 2 items that may help:

1)Javadoc for an Ant Resource:
http://www.docjar.com/docs/api/org/apache/tools/ant/types/Resource.html

2)The folks at Simon Fraser put together this user-friendly explanation
http://www.sfu.ca/cprost/docs/A%20Brief%20Overview%20of%20ANT.pdf
 
the way I classify a resource is any entity which is not a Java class 
so an (ant) java class can be configured by a resource specifically
.properties

or a resource which is used to describe schema could be described and defined 
by a resource specifically:
xml/xsd

or documents with or without associated view programmes described by a resource 
specifically:
pdf/doc
 
anyone?
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Subject: RE: Ant: want to copy a file if it exists
> Date: Fri, 30 Jul 2010 08:43:30 -0400
> From: eric.w...@thomsonreuters.com
> To: user@ant.apache.org
> 
> I was curious if resource collections were an option to use. To be honest, I 
> have never fully appreciated resources. Is there a good tutorial on resources 
> in ANT?
> 
> 
> 
> -----Original Message-----
> From: Vimil Saju [mailto:vimils...@yahoo.com] 
> Sent: Thursday, July 29, 2010 8:27 PM
> To: Ant Users List
> Subject: Re: Ant: want to copy a file if it exists
> 
> Use the 'available' task to check if a file exists. There is also an 'if' 
> task which is part of antcontrib that you can use to execute tasks 
> conditionally
> 
> --- On Thu, 7/29/10, eric.w...@thomsonreuters.com 
> <eric.w...@thomsonreuters.com> wrote:
> 
> From: eric.w...@thomsonreuters.com <eric.w...@thomsonreuters.com>
> Subject: Ant: want to copy a file if it exists
> To: user@ant.apache.org
> Date: Thursday, July 29, 2010, 2:08 PM
> 
> I want to check to see if a file exist and if so then copy it.  What is
> the best way for performing this conditional task?
> 
> 
> 
> Thanks, eric
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 
                                          

Reply via email to