Re: import binary files through java cvs
Martin Entlicher <[email protected]> Tue, 23 Jan 2007 23:07:18 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Forwarding to javacvs mailing list. Please send further questions to [email protected], neither me nor Milos work on Javacvs any more. Thanks, Martin ruchiras wrote: > hi to all, > I am using netbean api for cvs command.I am having the same problem > that i am not able to open binary file after importing in cvs repository. > I want to import a directory which contain both text and binary file. > can you please hel me out to how to import a directory which contain > binary files. > > MY CODES > > ImportCommand command = new ImportCommand(); > Map wrapperMap = new HashMap(); > String filenamePattern="*.ppt"; > > KeywordSubstitutionOptions keywordSubstitutionOptions; > Object b= KeywordSubstitutionOptions.BINARY; > wrapperMap.put(new SimpleStringPattern(filenamePattern),b); > > command.addWrapper(filenamePattern,org.netbeans.lib.cvsclient.command.KeywordSubstitutionOptions.BINARY); > command.setWrappers(wrapperMap); > command.setModule(module); > command.setLogMessage(comment); > command.setReleaseTag(releaseTag); > command.setImportDirectory(path); > client.setLocalPath(path); > command.setVendorTag(vendorTag); > result = client.executeCommand(command, globalOptions); > > Regards > ruchira