generally using the property to reflect a file location such as <property name="foo" file="foo.properties"/>then gating execution of a delete target will do <target name="deletefoo" if="foo"/> <delete file="foo.properties" /> </target>
as scot mentioned as you havent supplied your build.xml it is impossible to provide a comprehensive answer 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. > Date: Tue, 24 May 2011 21:04:33 -0400 > From: sflo...@nc.rr.com > To: user@ant.apache.org > Subject: Re: Help with ant task > > > Mind showing what you tried that didn't work??? > > Might be easier to see how you are trying to accomplish this and then > point out what to do :) > > > On Tue, 24 May 2011, rakesh mailgroups wrote: > > > Hi, > > > > hope you can help as I am struggling to get this to work!! > > > > I have a lib directory that may potentially contain libs such as: > > > > acme.jar > > acme-2011050241533.jar > > > > The two jars are related but I want only one in the directory. So, if > > acme-*.jar exists, then I need to delete acme.jar. > > > > I've tried <available> and <resourcecount> but nothing works. > > > > Can you help? > > > > Thanks > > > > Rakesh > > > > Scot P. Floess RHCT (Certificate Number 605010084735240) > Chief Architect FlossWare http://sourceforge.net/projects/flossware > http://flossware.sourceforge.net > https://github.com/organizations/FlossWare > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org >