Bugs item #1446022, was opened at 2006-03-08 18:58
Message generated for change (Comment added) made by flynhigh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1446022&group_id=54790

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: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Changsu Go (flynhigh)
Assigned to: Nobody/Anonymous (nobody)
Summary: vsscheckout task broken?

Initial Comment:
I'm getting below weird message and it won't check it
out no matter what.
However, if there's no file existing in local then it
gets and checks it out fine.
I'm using v0.85.2254.0.

====
[vsscheckout] E:\...\CdaModalSite.build(119,4):
[vsscheckout] The check-out operation failed.
[vsscheckout]     File "E:\...\CdaModalSite.build"
already exists
====

----------------------------------------------------------------------

>Comment By: Changsu Go (flynhigh)
Date: 2006-08-17 13:34

Message:
Logged In: YES 
user_id=826861

I found the culprit!
Here's the source code in "ExecuteTask" method.

try {
  switch (Item.Type) {
    case (int) VSSItemType.VSSITEM_PROJECT:
      Item.Checkout("", LocalPath.FullName, flags);
      break;
    case (int) VSSItemType.VSSITEM_FILE:
      string filePath =
System.IO.Path.Combine(LocalPath.FullName, Item.Name);
      Item.Checkout("", filePath, flags);
      break;
  }

} catch (Exception ex) {
  throw new BuildException("The check-out operation failed."
+ ex.ToString(), 
    Location, ex);
}

Now change it to,

try {
  switch (Item.Type) {
    case (int) VSSItemType.VSSITEM_PROJECT:
      Item.Checkout("", LocalPath.FullName, flags);
      break;
    case (int) VSSItemType.VSSITEM_FILE:
//      string filePath =
System.IO.Path.Combine(LocalPath.FullName, Item.Name);
//      Item.Checkout("", filePath, flags);
        Item.Checkout("", LocalPath.FullName, flags);
      break;
  }

} catch (Exception ex) {
  throw new BuildException("The check-out operation failed."
+ ex.ToString(), 
    Location, ex);
}

Build it and you are safe to use the latest and greatest!

----------------------------------------------------------------------

Comment By: Colin (colin_tools)
Date: 2006-06-23 08:48

Message:
Logged In: YES 
user_id=1544907

I gave 0.85 rc-4 a try today (coming from 0.84), and I 
have the exact same problem... ...Tried to work around it 
by downloading the source of nant.contrib and re-establish 
some old code (the line of code with  "| 
GetFileTimestampFlags(FileTimestamp);" seems to be some 
real change). But when I just build it (without adjusting 
anything), and replace the contrib libraries, Nant says 
the vsscheckout element doesn't even exist. In this way I 
cannot get around the problem and cannot help to solve 
it... I'll stick with 0.84 for now.

----------------------------------------------------------------------

Comment By: Changsu Go (flynhigh)
Date: 2006-03-13 16:24

Message:
Logged In: YES 
user_id=826861

After spending hours I'm going back to 0.85 rc1.
That's the only version works for me.
I believe you introduced new things in rc2 and that breaks
this task.
Please have a look at that version.

Thanks,

Terry

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1446022&group_id=54790

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAntContrib-Developer mailing list
NAntContrib-Developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer

Reply via email to