#112 vsscheckout task broken?

open
nobody
Tasks (69)
5
2006-03-08
2006-03-08
Changsu Go
No

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
====

Discussion

  • Changsu Go

    Changsu Go - 2006-03-13

    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

     
  • Colin

    Colin - 2006-06-23

    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.

     
  • Changsu Go

    Changsu Go - 2006-08-17

    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!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks