<available file="gu_hrd.distrib" property="gu_hrd.distrib-present">
    <filepath>
        <fileset dir="/home/pritu/verify"/>
    </filepath>
</available>

<target name="move-along" if="gu_hrd.distrib-present">
    <echo>gu_hrd.distrib present</echo>
</target>


Jan



> -----UrsprÃngliche Nachricht-----
> Von: Pritesh saharey [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 11. August 2004 09:03
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Checking for avaliablity of file
> 
> Thanks Jan for your quick reply but I already used 
> <available> its not working, please suggest some other solution.
> 
> pritu
> 
> 
> 
> 
> --- [EMAIL PROTECTED] wrote:
> <available> ?
> 
> Jan
> 
> > -----UrsprÃngliche Nachricht-----
> > Von: Pritesh saharey [mailto:[EMAIL PROTECTED]
> > Gesendet am: Mittwoch, 11. August 2004 08:35
> > An: [EMAIL PROTECTED]
> > Betreff: Checking for avaliablity of file
> > 
> > Hi All,
> > I want to check for a file whether it exsist or not in a 
> > particular path how can it be checked, suppose there is a file at
> > /home/pritu/verify/gu_hrd.distrib and in my build.xml file 
> > there is target <target name="move-along"> which is dependent 
> > on the avaliability
> > of this gu_hrd.distrib file, so i wanted to check that untill 
> > and unless this file exsist at its particular location target 
> > move-along should 
> > not get executed and build should stop with message that 
> > "gu_hrd.distrib file does not exsist at /home/pritu/verify"
> > can anyone help me out?
> > 
> > pritu
> > 
> > 
> > 
> > 
> > _____________________________________________________________
> > Join SQAtester.com Community  ---> 
> > http://www.sqatester.com/testersarea/joinus.htm
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> _____________________________________________________________
> Join SQAtester.com Community  ---> 
http://www.sqatester.com/testersarea/joinus.htm

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to