The basedir is a path, and this should indeed not contain '*' characters.

More recent versions of NAnt (http://nant.sourceforge.net/nightly/builds),
will provide a more useful error message.

You probably want something like this :

<fileset basedir="../${branch}/.NET" >
<includes name="*.*" />
</fileset>

or this if you also want to remove all files from subdirectories too :

<fileset basedir="../${branch}/.NET" >
<includes name="**/*.*" />
</fileset>

Hope this helps,

Gert
----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 03, 2004 12:37 AM
Subject: [nant-dev] Path string bug


When I try to delete all files in build dir, I get the below error, below is
my
task:

<target name="deleteall" >
<echo  message="${nant.project.basedir}" />
<delete verbose="true" failonerror="true">
<fileset basedir="../${branch}/.NET/**" >
<includes name="*.*" />
</fileset>
</delete>
</target>

BUILD FAILED

INTERNAL ERROR

System.ArgumentException: Illegal characters in path.
   at
System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[]
 str)
   at
System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA
ccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean
needFul
lPath, Boolean copyPathList)
   at
System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at NAnt.Core.Project.GetFullPath(String path)
   at NAnt.Core.Types.FileSet.InitializeElement(XmlNode elementNode)
   at NAnt.Core.Element.Initialize(XmlNode elementNode)
   at NAnt.Core.Element.CreateChildBuildElement(PropertyInfo propInf,
XmlNode xm
l)
   at NAnt.Core.Element.InitializeXml(XmlNode elementNode)
   at NAnt.Core.Element.Initialize(XmlNode elementNode)
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=ick
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to