Just Learning... Someone with patience?

Help
YuYu
2005-06-25
2013-04-25
  • YuYu
    YuYu
    2005-06-25

    Thanks in Advance if anyone at all has the patience to answer this.

    I want my project to use this library to do one single task,
    CVS -z3 -d :pserver:anonymous:@cvs.sourceforge.net:/cvsroot/xbmc checkout XBMC
    is what it looks like on the command line.
    Yes I could use a Process and just use cvs.exe, but I wanted to this instead as I though it would teach me more...

    So, my question is, what files do I include as a reference in my project and what would the C# code llok liek to do the checkout in my App?

    Thanks again, if anyone answers that is :)

     
    • fat-t
      fat-t
      2005-06-26

      Hi, I just started using this api yesterday so I can't tell you exactly what to do, but if you download the latest release 0.36 you will find an example folder...just load that example project and add a reference to the "whole" project including the external libs...and you will probably figure out how to use the api =)...the example includes a login to the server and a checkout.

       
      • Hi There, the example application is probably a good place to start.  Another place you can look is in the Console application, this application is a commandline interface for the library and is probably closer to how you want to use it.

         
    • YuYu
      YuYu
      2005-06-28

      An unhandled exception of type 'ICSharpCode.SharpCvsLib.Exceptions.AuthenticationException' occurred in icsharpcode.sharpcvslib.dll

      Happens on this line:             checkoutCommand.Execute(serverConn);

      This happens when I run the sample application included with SharpCvsLib-0.36.4814.449-src called Listen.exe

      I tried running it with what is in the the textboxes by default, I then tried doing  a checkout with my own supplied Root and Module, to no avail...

       
      • Hi YuYu, this is now fixed in cvs.  The login was failing for anonymous user.  Thanks,

        Clayton

         
    • YuYu
      YuYu
      2005-06-28

      I can't for the life of me to get the CVS source to compile.
      I How do you Compile it?
      Is there any sort of documentation on how?

       
      • The simplest way to build is to go to the build folder and type:
            nant.bat build.all

        There is also a little exe that you can use if you aren't familiar with NAnt.  Just run the InstallBuilder.bat file in the project root, it will add a shortcut to the application to your desktop.

        I have updated the SharpDevelop project files so you should be able to build with them now. 

         
        • YuYu
          YuYu
          2005-07-01

          Hmm, well following your directions I still cannot get it to compile. I have tried both using the commandline and nant with the line you supplied and also tried compiling with #Develop.

           
          • Hmmm, my ccnet server doesn't seem to have an issue building the application, maybe you did something wrong?   If you could include information on what you have tried and what errors you are getting in your next response that would be helpful.  Thanks.

             
    • YuYu
      YuYu
      2005-06-29

      By the way, I have downloaded your free C# IDE to use in compiling and it is still not working, saying files are in the wrong place and lots of other stuff...

       
    • YuYu
      YuYu
      2005-07-04

      Anyway I can get someone to rar up a working version from the latest CVS and just email or host it?

      Keeps giving me the following when I try to run the builder application:

      [build.all] -
      [build.all] - C:\Documents and Settings\Johny\Desktop\sharpcvslib\build>..\tools\nant\bin\nant.exe build.all         
      [build.all] - NAnt 0.85 (Build 0.85.1860.0; dev; 2/3/2005)
      [build.all] - Copyright (C) 2001-2005 Gerry Shaw
      [build.all] - http://nant.sourceforge.net
      [build.all] -
      [build.all] - Buildfile: file:///C:/Documents and Settings/Johny/Desktop/sharpcvslib/build/SharpCvsLib.build
      [build.all] - Target framework: Microsoft .NET Framework 1.1
      [build.all] - Target(s) specified: build.all
      [build.all] -
      [build.all] -    [tstamp] Sunday, July 03, 2005 11:36:39 PM.
      [build.all] -    [tstamp] build.date = 2005/07/03 11:36:39.
      [build.all] -    [tstamp] Sunday, July 03, 2005 11:36:39 PM.
      [build.all] -    [tstamp] current.year = 2005.
      [build.all] -
      [build.all] - InstallNAntExtras:
      [build.all] -
      [build.all] -      [nant] C:\Documents and Settings\Johny\Desktop\sharpcvslib\tools\nant\opt\build\NAntExtras.build
      [build.all] -             Buildfile: file:///C:/Documents and Settings/Johny/Desktop/sharpcvslib/tools/nant/opt/build/NAntExtras.build
      [build.all] -             Target framework: Microsoft .NET Framework 1.1
      [build.all] -             Target(s) specified: Build
      [build.all] -            
      [build.all] -            
      [build.all] -             Build:
      [build.all] -            
      [build.all] -              [solution] Starting solution build.
      [build.all] -              [solution] Building 'NAntExtras' [Release] ...
      [build.all] -            
      [build.all] -             BUILD SUCCEEDED
      [build.all] -            
      [build.all] -             Total time: 0.2 seconds.
      [build.all] -            
      [build.all] -
      [build.all] - InstallBuilder:
      [build.all] -
      [build.all] - [loadtasks] Scanning assembly "Sporadicism.NAntExtras" for extensions.
      [build.all] -      [nant] C:\Documents and Settings\Johny\Desktop\sharpcvslib\tools\Builder\build\Builder.build
      [build.all] -             Buildfile: file:///C:/Documents and Settings/Johny/Desktop/sharpcvslib/tools/Builder/build/Builder.build
      [build.all] -             Target framework: Microsoft .NET Framework 1.1
      [build.all] -             Target(s) specified: Build
      [build.all] -            
      [build.all] -            
      [build.all] -             Build:
      [build.all] -            
      [build.all] -              [solution] Starting solution build.
      [build.all] -              [solution] Building 'Builder' [Release] ...
      [build.all] -              [solution] PostBuildEvent failed with exit code = 1
      [build.all] -              [solution] Build failed.
      [build.all] -              [solution] Project 'Builder' failed!
      [build.all] -              [solution] Continuing build with non-dependent projects.
      [build.all] -              [solution]
      [build.all] -              [solution] Solution failed to build!  Failed projects were:
      [build.all] -              [solution]   - Builder
      [build.all] -            
      [build.all] -             BUILD FAILED - 7 non-fatal error(s), 0 warning(s)
      [build.all] -            
      [build.all] -             C:\Documents and Settings\Johny\Desktop\sharpcvslib\tools\Builder\build\Builder.build(6,10):
      [build.all] -             Project build failed.
      [build.all] -            
      [build.all] -             Total time: 0.1 seconds.
      [build.all] -            
      [build.all] -
      [build.all] - BUILD FAILED
      [build.all] -
      [build.all] - Nested build failed.  Refer to build log for exact reason.

       
      • Thanks, it looks like the issue might be spaces in the path on the copy step.  I have commited a patch that should fix this but if you move your checked out folder into a path without spaces that would work too.

        If you just want to download the built application just click on the Integration link off the main page: http://sharpcvslib.sourceforge.net/.  The link was down this weekend due to server problems (cat knocked the plug out of the wall :-)) but it should be good to go now.  Let me know how that works for you.

         
        • Hi there, just following up on this.  Have you had a chance to try the fix that I applied?  Is the application now compiling for you?

           
    • YuYu
      YuYu
      2005-07-07

      Thank you for the fix and replies. It compiles now. I haven't had time to check but if I can use the anonymous checkout yet, but I imagine it shoul work since you said you fixed that.

      I was wondering, I did notice before that it complained about trying to use a different version of SharpZipLib. How can I change which version of SharpZipLib I would like it to use?

       
      • Hi there, can you send the error/ warning that you are getting for SharpZipLib?  I am not sure if it is a problem but it might give me some context.

        To change the version of SharpZipLib that you are using you would just replace the SharpZipLib in the lib folder with whatever version you would rather use - if you are getting the warning while compiling.

        If you are getting the error/ warning when you are running SharpCvsLib you would change the version of SharpZipLib in the same directory that the library is in.