Re: problem with updating binary files
Jeff Cantin <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
I haven't used this before, but judging from the api:
--------
KeywordSubstitutionOptions kso=
KeywordSubstitutionOptions.findKeywordSubstOption("b");
add.setKeywordSubst(kso);
--------
Jeff
--- Dariusz Drezno <[email protected]> wrote:
> I use following function:
>
> public void addFile(String p_file) throws Exception{
>
> AddCommand add = new AddCommand();
> File file = new File(p_file);
> File[] files = new File[]{file};
> add.setFiles(files);
> try {
> client.executeCommand(add, globalOption);
> } catch (CommandException ce) {}
> }
>
> There is any function in class AddCommand which allows set -kb
> property??
> best regards,
> DD
>
> ----- Original Message -----
> From: "Jeff Cantin" <[email protected]>
> To: <[email protected]>
> Sent: Monday, June 03, 2002 1:18 PM
> Subject: Re: [javacvs-dev] problem with updating binary files
>
>
> > Are you adding the file as binary? Anytime you put a binary file
> in
> > CVS, it needs to get the '-kb' property. The command would look
> like:
> >
> >
> > cvs add -kb a.doc
> >
> > Afterwards it is treated by updates, commits, and other commands
> as a
> > binary file. If you've already added a file as text and want to
> > change it, run this on the file:
> >
> > cvs admin -kb a.doc
> >
> > You'll have to delete the directory that the file is in and
> > re-checkout it, since the 'admin' command doesn't change the
> local
> > information about the file, only the remote info.
> >
> > Jeff
> >
> > --- Dariusz Drezno <[email protected]> wrote:
> > > Hello,
> > >
> > > I don't know why if I have two or more revisions of binary
> file,
> > > and I try
> > > update it, my files are shorter.
> > > For instance:
> > > 1. I add file a.doc (revision 1.1, size 19456)
> > > 2. I add new revision of a.doc (revision 1.2, size 19456)
> > > 3. I try update revision 1.2 or revision 1.1
> > > 4. I get a.doc with size 19448 !
> > >
> > > Why? Should I add binary files with some special option?
> > >
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com