Hoi Doeke,

You should not use wildcards in the "file" attribute of the copy task.

If you want to use patterns, you should use a fileset. 

For example :

<copy todir="${patch.archive}">
        <fileset basedir=".">
                <include name="*/**" />
        </fileset>
</copy>
 
Gert

PS1. I advise you to use a recent nightly build of NAnt
(http://nant.sourceforge.net/nightly/builds).

PS2. Good to learn that ATOS uses NAnt too. I work for Ardatis (in Belgium),
we have a partnership with ATOS Belgium.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Doeke Zanstra
> Sent: vrijdag 22 oktober 2004 11:28
> To: [EMAIL PROTECTED]
> Subject: [nant-dev] INTERNAL ERROR
> 
> I got the error specified below. I use nant 0.84 on Windows 2000
> Server with dot net 1.0 (or 1.1).
> 
> Message
> -------------
> INTERNAL ERROR
> 
> System.ArgumentException: Illegal characters in path.
>    at 
> System.Security.Permissions.FileIOPermission.HasIllegalCharact
> ers(String[]
> str)
>    at 
> System.Security.Permissions.FileIOPermission.AddPathList(FileI
> OPermissionAccess
> access, String[] pathListOrig, Boolean checkFo
> rDuplicates, Boolean needFullPath, Boolean copyPathList)
>    at 
> System.Security.Permissions.FileIOPermission..ctor(FileIOPermi
> ssionAccess
> access, String[] pathList, Boolean checkForDuplicate
> s, Boolean needFullPath)
>    at System.IO.Path.GetFullPath(String path)
>    at NAnt.Core.Project.GetFullPath(String path)
>    at NAnt.Core.Tasks.CopyTask.get_SourceFile()
>    at NAnt.Core.Tasks.CopyTask.InitializeTask(XmlNode taskNode)
>    at NAnt.Core.Task.InitializeElement(XmlNode elementNode)
>    at NAnt.Core.Element.Initialize(XmlNode elementNode)
>    at NAnt.Core.Target.Execute()
>    at NAnt.Core.Project.Execute(String targetName, Boolean 
> forceDependencies)
>    at NAnt.Core.Project.Execute()
>    at NAnt.Core.Project.Run()
> 
> Please send bug report to [EMAIL PROTECTED]
> 
> nant project file (it crasht when I added the two copy tasks
> -------------
> <property name="patch.name"   value="2004-10-19_NewPP-SAT"/>
> <property name="patch.archive"
> value="R:\Algemeen\xButler\tab\patches\1.3\2004-10-19_NewPP"/>
> <copy file="*.*" todir="${patch.archive}"/>
> <copy file="Build\${patch.name}.exe" todir="${patch.archive}\Build"/>
> 
> 
> 
> listing of current directory:
> -------------------------
> 22-10-2004  11:15       <DIR>          .
> 22-10-2004  11:15       <DIR>          ..
> 22-10-2004  11:15               10.839 2004-09-13.build
> 19-10-2004  21:21               39.635 bis.js
> 22-10-2004  11:16       <DIR>          Build
> 22-10-2004  11:01                  109 confMan.inc.txt
> 01-09-2004  11:59                   36 GO.bat
> 20-10-2004  15:12                  878 install.bis
> 08-10-2004  10:43                  355 peronal.xml
> 08-10-2004  11:04                   17 proces.components.txt
> 14-10-2004  15:27                  499 proces.expired.txt
> 14-10-2004  15:35                  307 proces.mod.txt
> 22-10-2004  10:36                  972 proces.new.txt
> 08-10-2004  11:51                  420 rarComments.txt
> 08-10-2004  11:10                   73 resource.components.txt
> 08-10-2004  11:08                  218 service-resource.components.txt
> 08-10-2004  11:05                  154 service.components.txt
> 20-10-2004  15:07                  120 settings.reg
> 20-10-2004  18:52                  288 vssver.scc
> 
> listing of Build directory:
> -------------------------
> 22-10-2004  11:16       <DIR>          .
> 22-10-2004  11:16       <DIR>          ..
> 22-10-2004  11:16       <DIR>          2004-10-19_NewPP-SAT
> 22-10-2004  11:16            1.264.868 2004-10-19_NewPP-SAT.exe
> 
> 
> Success. Sorry I don't have more time to check this problem. We are
> releasing this weekend...
> -- 
> Doeke Zanstra
> Software Development
> 
> Atos Origin TSS
> Practice Mobile
> Unit Fulfillment
> 
> E [EMAIL PROTECTED]
> W http://www.xs4all.nl/~zanstra/
> T +31 (0)50-58 83073
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on 
> ITManagersJournal
> Use IT products in your business? Tell us what you think of 
> them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to 
> find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
> 
> 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to