Bugs item #1666783, was opened at 2007-02-23 06:02
Message generated for change (Comment added) made by tusharkesare
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1666783&group_id=31650
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Functions
Group: None
Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Tushar K (tusharkesare)
Assigned to: Gert Driesen (drieseng)
Summary: file::exists() fails
Initial Comment:
Hi,
I am using svn 1.4.2 setup.
file::exists() function is not working properly.
It always returns false irrespective of existence of file.
Can someone pls verify it??
Thanks,
Tushar
----------------------------------------------------------------------
>Comment By: Tushar K (tusharkesare)
Date: 2007-03-23 05:28
Message:
Logged In: YES
user_id=1726760
Originator: YES
Thanks.
It is working.
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2007-03-19 15:13
Message:
Logged In: YES
user_id=707851
Originator: NO
There's no buglet here (except for perhaps a lack of documentation).
In functions, properties should not be enclosed in '${...}' if you want to
use their expanded value.
Use this:
<if test="${file::exists(filepath)}">
...
</if>
instead of:
<if test="${file::exists('${filepath}')}">
...
</if>
----------------------------------------------------------------------
Comment By: rafpalm (rafpalm)
Date: 2007-03-19 14:30
Message:
Logged In: YES
user_id=1747363
Originator: NO
I have found also this problem
file::exists() function is not working properly.
It always returns false irrespective of existence of file.
Is it verified by someone?
thanks,
Raffaele.
----------------------------------------------------------------------
Comment By: Martin Aliger (maliger)
Date: 2007-02-26 09:05
Message:
Logged In: YES
user_id=655297
Originator: NO
I'm using file::exists alot in my production scripts and never had a
problem with it. We are using svn 1.4.3 btw - but don't think it could
somehow influence the file:exists function.
----------------------------------------------------------------------
Comment By: Tushar K (tusharkesare)
Date: 2007-02-26 05:11
Message:
Logged In: YES
user_id=1726760
Originator: YES
Hi,
Thanx for reply.
Here is code I am using:
<target name="build">
<property name="filepath" value="c:\mallow.exe"/>
<echo message="${filepath}"/>
<if test="${file::exists('${filepath}')}">
<echo message="File Exists"/>
</if>
<if test="${not file::exists('${filepath}')}">
<echo message="File does not Exist"/>
</if>
</target>
In any case it prints, "File does not Exist".
Version of NAnt.Core.dll present is 0.85.2478.0
I am not able to figure out what is wrong.
Thanx,
Tushar
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2007-02-25 20:00
Message:
Logged In: YES
user_id=707851
Originator: NO
svn 1.4.2 ?
It working just fine here. Do you have a simple repro that you can share ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1666783&group_id=31650
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers