Also, it might be prudent to use the path::combine function just to be on 
the safe side wrt slashes etc.  i.e.

<exec program="${fxcop}" failonerror="false"
    <arg value="/file:${core.source}\SomeAssembly.dll" 
if="${file::exists(path::combine(core.source, '\ SomeAssembly.dll'))}"  />
</exec>









From Bill Martin, PA Plans
13/11/2008 11:57


To
"Alon Amsalem, iFOREX" <[EMAIL PROTECTED]>@NFU MUTUAL
cc
"nant-users@lists.sourceforge.net" <nant-users@lists.sourceforge.net>
Subject
Re: [NAnt-users] "IF file::exists" inside "ARG" inside EXEC tasks







Alon

Get rid of the escaping round the property.  You are already escaped for 
the function.  i.e.

<exec program="${fxcop}" failonerror="false"
<arg value="/file:${core.source}\SomeAssembly.dll" 
if="${file::exists(core.source'\ SomeAssembly.dll ')}"  />
</exec>

HTH,
Bill







From "Alon Amsalem, iFOREX" <[EMAIL PROTECTED]> 
13/11/2008 10:34


To
"nant-users@lists.sourceforge.net" <nant-users@lists.sourceforge.net>
cc

Subject
[NAnt-users] "IF file::exists" inside "ARG" inside EXEC tasks







 
Hi,
 
I'm trying to use "if" inside "arg" of "exec" task and is it's not working
Example:
 
<exec program="${fxcop}" failonerror="false"
<arg value="/file:${core.source}\SomeAssembly.dll" 
if="${file::exists('${core.source}\ SomeAssembly.dll ')}"  />
</exec>
 
Any ideas ?
 
Thank You,
Alon Amsalem
 
 
 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________




************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer 
viruses.
************************************************************************************

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



 


IMPORTANT 
The information contained in this e-mail and any attachments is intended for 
the addressee only
and may contain legally privileged or confidential information. If you are not 
the intended
recipient you must not use, disclose, copy, distribute, alter, or take any 
action in reliance
on the information and Avon Insurance plc will not accept liability for any 
loss or damage howsoever
arising, directly or indirectly in reliance on it and gives no warranty or 
representation as to its
accuracy or reliability. If you are not the addressee, please notify us 
immediately on 01789 202121*
and delete the material from your computer and destroy any copies.

Avon Insurance plc reserves the right to monitor and record incoming and 
outgoing email messages for
the purposes of investigating or detecting unauthorised use of its system and 
ensuring its effective operation.
Avon Insurance plc will not accept liability for any loss or damage as a result 
of any virus being passed on.

Avon Insurance plc (No. 209606).
Registered in England.
Registered Office: Tiddington Road, Stratford-upon-Avon, Warwickshire CV37 7BJ.
Authorised and regulated by the Financial Services Authority.
A member of the NFU Mutual group of companies and the Association of British 
Insurers.
For security and training purposes telephone calls may be recorded and 
monitored.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to