Bugs item #1526481, was opened at 2006-07-21 13:57
Message generated for change (Comment added) made by cchan_qa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1526481&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: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: carle78 (carle78)
Assigned to: Charles Chan (cchan_qa)
Summary: Copy, cant handle filepath
Initial Comment:
Hi!
Im performing a backup of our perforce server, and one
file path is truncated. Everything else works. So I
suppose the path contains some character that confuses
the copy-task.
Here it is:
[copy] Copying
'd:\Perforce\depot\customerprojects\optics\interoptik\imports\vare\orginalfiler
fra leverandorer\ok\ok_adidas sport~februar
2005.xls,d\1.1.gz' to 'z:\Perforce\Data\1.1.gz'.
As you can see, only the last part of the path is kept.
This is from the NAnt-script:
<copy todir="${backup.data.dir}"
overwrite="${do.overwrite}" verbose="true">
<fileset basedir="${data.dir}">
<include name="**/*"/>
<exclude name="checkpoint*"/>
<exclude name="journal*"/>
<exclude name="db.*"/>
</fileset>
</copy>
Best regards
Carl Ericsson
----------------------------------------------------------------------
>Comment By: Charles Chan (cchan_qa)
Date: 2010-04-24 21:56
Message:
Just for completeness, I also reconstructed the extended path based on the
information provided. Again it appears to be working correctly in the
latest CVS HEAD.
C:\cygwin\home\admin\nant>bootstrap\nant.exe
-buildfile:scratch\test.build
NAnt 0.90 (Build 0.90.3761.0; dev; 4/19/2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/cygwin/home/admin/nant/scratch/test.build
Target framework: Microsoft .NET Framework 3.5
[copy] Created directory
'C:\cygwin\home\admin\nant\scratch\destdir\normal_folder'.
[copy] Created directory
'C:\cygwin\home\admin\nant\scratch\destdir\Perforce\depot\customerprojects\optics\interoptik\imports\vare\orig
inal filter fra leverandorer\ok\ok_adidas sport~februar2005.xls,d'.
[copy] Copying 2 files to
'C:\cygwin\home\admin\nant\scratch\destdir'.
[copy] Copying
'C:\cygwin\home\admin\nant\scratch\srcdir\normal_folder\aFile.txt' to
'C:\cygwin\home\admin\nant\scratch\destdir\normal_
folder\aFile.txt'.
[copy] Copying
'C:\cygwin\home\admin\nant\scratch\srcdir\Perforce\depot\customerprojects\optics\interoptik\imports\vare\original
filter
fra leverandorer\ok\ok_adidas sport~februar2005.xls,d\1.1.gz' to
'C:\cygwin\home\admin\nant\scratch\destdir\Perforce\depot\customerprojects
\optics\interoptik\imports\vare\original filter fra
leverandorer\ok\ok_adidas sport~februar2005.xls,d\1.1.gz'.
BUILD SUCCEEDED
Total time: 0.2 seconds.
----------------------------------------------------------------------
Comment By: Charles Chan (cchan_qa)
Date: 2010-04-24 21:51
Message:
I did a quick test and it appears to be working in the latest CVS HEAD.
directory structure:
C:\cygwin\home\admin\nant>tree scratch\srcdir
Folder PATH listing
Volume serial number is C408-A4F3
C:\CYGWIN\HOME\ADMIN\NANT\SCRATCH\SRCDIR
├───normal_folder
└───ok_adidas sport~februar2005.xls,d
.build file:
<?xml version="1.0"?>
<project name="Hello World">
<copy todir="destdir" overwrite="true" verbose="true">
<fileset basedir="srcdir">
<include name="**/*"/>
</fileset>
</copy>
</project>
result:
C:\cygwin\home\admin\nant>bootstrap\nant.exe
-buildfile:scratch\test.build
NAnt 0.90 (Build 0.90.3761.0; dev; 4/19/2010)
Copyright (C) 2001-2010 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/cygwin/home/admin/nant/scratch/test.build
Target framework: Microsoft .NET Framework 3.5
[copy] Copying 2 files to
'C:\cygwin\home\admin\nant\scratch\destdir'.
[copy] Copying
'C:\cygwin\home\admin\nant\scratch\srcdir\normal_folder\aFile.txt' to
'C:\cygwin\home\admin\nant\scratch\destdir\normal_
folder\aFile.txt'.
[copy] Copying 'C:\cygwin\home\admin\nant\scratch\srcdir\ok_adidas
sport~februar2005.xls,d\1.1.gz' to 'C:\cygwin\home\admin\nant\scratc
h\destdir\ok_adidas sport~februar2005.xls,d\1.1.gz'.
BUILD SUCCEEDED
Total time: 0.1 seconds.
----------------------------------------------------------------------
Comment By: Charles Chan (cchan_qa)
Date: 2010-04-23 03:10
Message:
Hello carle78. Just want to check if this is still an issue? If so, are you
able to provide a small sample to reproduce the issue?
----------------------------------------------------------------------
Comment By: carle78 (carle78)
Date: 2006-07-23 18:41
Message:
Logged In: YES
user_id=1559638
Hello, actually I will not be able to do that for a while.
I´m at home packing my bags for vacation, and I got the
scripts at work.
What I can say is that it was quite a lot of files (10000+)
that where copied, but that shouln´t affect the logic I suppose.
I will be back at work in three weeks, I´ll try a
newer/nightly build and see if I can reproduce it.
/Carl
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2006-07-23 15:34
Message:
Logged In: YES
user_id=707851
I'm unable to reproduce this issue. Can you create a small
repro ?
You can use <mkdir> and <touch> to setup the
files/directories in that sample build file to ensure it's
a self-contained repro.
----------------------------------------------------------------------
Comment By: carle78 (carle78)
Date: 2006-07-23 11:30
Message:
Logged In: YES
user_id=1559638
The value of the data.dir is d:/Perforce
----------------------------------------------------------------------
Comment By: carle78 (carle78)
Date: 2006-07-23 11:29
Message:
Logged In: YES
user_id=1559638
The filename is 1.1.gz
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2006-07-22 23:54
Message:
Logged In: YES
user_id=707851
What's the value of data.dir ? In your example, what's the
filename part ? It is "ok_adidas sport~februar
2005.xls,d\1.1.gz" ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1526481&group_id=31650
------------------------------------------------------------------------------
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers