[Logo] JCVSForum - Community Support For JCVS Users and Developers
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem with export command.  XML
Forum Index » JCVS Users
Author Message
Anonymous



When I process an export command, files download, but there are 'CVS' directories with administrative files that there should not be. Don't anybody knows where's problem? Should I remove them myself?

Thanks.
Tom.
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

The CVS administrative files only result from a call to writeAdminFiles(). I believe if you remove your call to this method, all will be right.
[Email] [WWW]
Anonymous



The problem is that I call CVSProject.performCVSRequest(), which calls CVSProject.processCVSResponse(), which calls writeAdminFiles()

Thanks anyway,
Tom.
Anonymous



Anonymous wrote:The problem is that I call CVSProject.performCVSRequest(), which calls CVSProject.processCVSResponse(), which calls writeAdminFiles()

Thanks anyway,
Tom.


Now I set request manually and call only CVSClient.processCVSRequest() and after downloading files, CVS administrative directories are there again! And I don't call writeAdminFiles()!

Cvs command: "export:N:ANP:deou:"

Tom
time


[Avatar]

Joined: 05/06/2004 18:09:23
Messages: 367
Location: Bangkok
Offline

First, FYI, the admin files are written by CVSProject.processCVSResponse(). You can set the flag "CVSRequest.handleEntries" to false, and that should prevent the files from being written.

Now, what about the CVS directories being created? I believe it is the result of a call to CVSProject.ensureProperWorkingDirectory(). You will see that an argument is passed to this method called "ensureAdmin", which if true causes the Admin directories to be created. From what I can see, this flag is also determined by the "CVSRequest.handleEntries". In terms of the command string you show, I think you need to remove the "e" from the last segment, thus, "export:N:ANP:dou:".

Reviewing the export command in jCVS II, I see that I do not explicitly set this flag, which means it happens to default to false (lucky me). I have updated the code to explicitly set this flag to make it more clear.
[Email] [WWW]
 
Forum Index » JCVS Users
Go to:   
Powered by JForum 2.1.9 © JForum Team