Problem with tagging a module
"Nikolov. Dragomir" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
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>);
//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