RE: [Nant-users] copy file problem

2004-05-04 Thread Bob Archer








I found that the problem was what someone
else was mentioning here. The server had files locked and I couldnt copy
over them.



What happened to XCopy deployment? The
server isnt supposed to lock files right?











From: Brian Etheridge
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 10:39
AM
To: Bob Archer; [EMAIL PROTECTED]
Subject: RE: [Nant-users] copy
file problem







I think the includes should either be
*.*, or if you want to use the ** shorthand value then
you also need to specify a partial path. I happen to have been looking at
this this mrning and that's what I gathered from the task list documentation (I
haven't tried this myself).











Here's the reference http://nant.sourceforge.net/help/types/fileset.html.





-Original Message-
From: Bob Archer
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 3:31
PM
To:
[EMAIL PROTECTED]
Subject: [Nant-users] copy file
problem

I'm using the 5/3 nightly build with the following script:




target name=CopyToQA description=Copy to QA
directory.


echo message=Copy runtime files to QA. /


copy todir=\\qaevolution2003\wwwroot\Geac.QA 


fileset basedir=\\devevolution2k3\C$\DailyBuild\


includes name=** /


/fileset


/copy



/target 



Getting the following error:



System.ArgumentException: Invalid File or Directory
attributes value.

 at System.IO.File.SetAttributes(String path,
FileAttributes fileAttributes)

 at NAnt.Core.Tasks.CopyTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Te

mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 314

 at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s

rc\NAnt.Core\Task.cs:line 151

 at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp

\src\NAnt.Core\Target.cs:line 249

 at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) in

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line
892

 at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm

p\src\NAnt.Core\Project.cs:line 849

 at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr

c\NAnt.Core\Project.cs:line 917



Please send bug report to [EMAIL PROTECTED].











What am I doing wrong? For some reason, I thought this had
worked when I wrote it.



Bob












RE: [Nant-users] copy file problem

2004-05-04 Thread Peter McEvoy
Title: Message



Well, 
I think I was the other person that had the problem, and I never managed to get 
to the bottom of it. However, it's not a NAnt problem, as from time to 
time, I have had the same type of problem cleaning out a web dir using windows 
explorer: one moment I go to delete the contents and get a permission 
denied error onone of the sub directories (usually "bin"), then when I go 
to do it again an instant later, it will delete...

  
  -Original Message-From: Bob Archer 
  [mailto:[EMAIL PROTECTED] Sent: 04 May 2004 15:47To: 
  Brian Etheridge; [EMAIL PROTECTED]Subject: RE: 
  [Nant-users] copy file problem
  
  I found that the 
  problem was what someone else was mentioning here. The server had files locked 
  and I couldn't copy over them.
  
  What happened to 
  XCopy deployment? The server isn't supposed to lock files 
  right?
  
  
  
  
  
  From: Brian 
  Etheridge [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:39 
  AMTo: Bob Archer; 
  [EMAIL PROTECTED]Subject: RE: [Nant-users] copy file 
  problem
  
  
  I think the includes 
  should either be "*.*", or if you want to use the "**" shorthand value then 
  you also need to specify a partial path. I happen to have been looking 
  at this this mrning and that's what I gathered from the task list 
  documentation (I haven't tried this 
myself).
  
  
  
  Here's the reference 
  http://nant.sourceforge.net/help/types/fileset.html.
  
-Original 
Message-From: Bob 
Archer [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 04, 2004 3:31 
PMTo: 
[EMAIL PROTECTED]Subject: [Nant-users] copy file 
problem
I'm using the 5/3 nightly build 
with the following script:

 
target name="CopyToQA" description="Copy to QA 
directory."
 
echo message="Copy runtime files to QA." 
/
 
copy todir="\\qaevolution2003\wwwroot\Geac.QA" 

 
fileset 
basedir="\\devevolution2k3\C$\DailyBuild\"
 
includes name="**" /
 
/fileset
 
/copy 

 
/target 


Getting the following 
error:

System.ArgumentException: 
Invalid File or Directory attributes value.
 at 
System.IO.File.SetAttributes(String path, FileAttributes 
fileAttributes)
 at 
NAnt.Core.Tasks.CopyTask.ExecuteTask() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Te
mp\tmp9E.tmp\src\NAnt.Core\Tasks\CopyTask.cs:line 
314
 at 
NAnt.Core.Task.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\s
rc\NAnt.Core\Task.cs:line 
151
 at 
NAnt.Core.Target.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp
\src\NAnt.Core\Target.cs:line 
249
 at 
NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) 
in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\src\NAnt.Core\Project.cs:line 
892
 at 
NAnt.Core.Project.Execute() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tm
p\src\NAnt.Core\Project.cs:line 
849
 at 
NAnt.Core.Project.Run() in 
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp9E.tmp\sr
c\NAnt.Core\Project.cs:line 
917

Please send bug report to [EMAIL PROTECTED].




What am I doing wrong? For some 
reason, I thought this had worked when I wrote 
it.

Bob