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: > Sorry, I outline my comments. > > -----Original Message----- > From: Nikolov. Dragomir > Sent: Monday, May 13, 2002 14:55 > To: [email protected] > Subject: RE: [javacvs-dev] Problem with tagging a module > > > Hello again > > -----Original Message----- > From: Milos Kleint [mailto:[email protected]] > Sent: Monday, May 13, 2002 14:27 > To: [email protected] > Subject: Re: [javacvs-dev] Problem with tagging a module > > > 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.. > > [Dragomir] > Without trailing separator I get the error > > absolute pathname `/db' illegal for server > > with a trailing separator I get the error > > cvs server: nothing known about > [/Dragomir] > > 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) > > [Dragomir] > Direcotry structure is > <BASE_DIR> > <MODULE_DIR> > /build (no subdirs) > /lib (no subdirs > /src > /db (first sub dir for the module > /java > ...... > > Local path is in Windows format, but it should not be a problem because > before > tagging a checkout is performed with success. A assume the localpath is <BASE_DIR>? what is the content of the <module_dir>/db/CVS directory? what is the content of the <module_dir>/CVS directory? > I do not exactly understand what you mean with -JcvsClientLog=<pathName> > java -jar <your app jar> -DcvsClientLog=c:\src\clientLog the java runtime variable will cause the library to dump the client/server protocol to files designated by the filename. Milos > Regards, > Dragomir > [/Dragomir] > > 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] >> > > > > > > --------------------------------------------------------------------- > 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] >