Re: Problem with tagging a module
Milos Kleint <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Nikolov. Dragomir wrote: > Than I get this error :( > > absolute pathname `/db' illegal for server > > db is directory from the module and is the first subdirectory when you > traverse the module dir tree(alphabetically sorted) > Again problems with sub dirs have you tried the localpath with or without the final separator? I think some people reported problems with the trailing separator at pathnames.. I think a more detailed description of the problem is needed. please let us know the directory structure, exact format of the localpath, the cvs client protocol (is created by the runtime switch -JcvsClientLog=<pathName> - will create 2 files, one with extension .in and one .out) Regards. Milos > > Regards Dragomir > > -----Original Message----- > From: Milos Kleint [mailto:[email protected]] > Sent: Monday, May 13, 2002 14:02 > To: [email protected] > Subject: Re: [javacvs-dev] Problem with tagging a module > > > Nikolov. Dragomir wrote: > >>Hello! >> I have recently started using the JavaCVS library to develop a >>program for checkoing out and tagging CVS modules. >> However I am having some problems with the tagging of a module. >> Here is the code I use for tagging >> >> //opens connection to a repository >> // the repository var contains all the information for a >>repository needed to establish connection >> Connection c = this.openConnection(repository); >> Client client = new Client(c, new StandardAdminHandler()); >> client.setLocalPath(this.localBase + File.separator + >><moduleName>); > > > this can be the problem. if you want to tag the module you should > execute the command from the directory which contains the module.. > In netbeans most of the commands are executed from this top-most > directory. (equals to the Working Directory property of the Filesystem) > > > Regards > > Milos > > >> //register the listener >> client.getEventManager().addCVSListener(listener); >> >> TagCommand tagger = new TagCommand(); >> tagger.setTag(tagName); >> >> >> //execute the command >> try >> { >> client.executeCommand(tagger, >>this.getGlobalOptions(repository)); >> >> //Log >> this.getLogger().info("Module " + module >> + " successfully tagged with tag " + >>tag); >> } >> catch ( CommandException exc ) >> { >> //log >> this.getLogger().log(Level.WARNING >> , "Failed to execute tag for module " >> + module >> , exc); >> >> throw new ServiceException(exc.getMessage(), exc); >> } >> }//tagModule(..) >> >> >> When I execute that code for tagging a complete module I get >>response containing multiple messages like this one >> " cvs server: nothing known about <fileName>" >> All the files mentioned in these messages are definitely >>under version control. >> >> The only partial success I get is when I set the localPath to a >>module's subdir which does not contain any subdirs itself. >> Then all the files in this directory are tagged successfully. >> >>Does anyone has such problems or knows the proper way to tag a whole >>module. >> >> >>Thanks in advance! >>Best Regards, >>Dragomir Nikolov >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [email protected] >>For additional commands, e-mail: [email protected] >> > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >