Re: how to use UpdateuBuilder

Milos Kleint <[email protected]> Sun, 21 Jul 2002 18:55:14 +0200
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Message-ID <[email protected]>
Shantanu Sen wrote:

>Is there any code snippet/example on how to use UpdateBuilder? I am running
>the UpdateCommand and would want to know the following:
>1. list of files not in repository
>2. list of files that got changed.
>3. Files added
>
>I have implemented the CVSAdapter and know that I can get the items 2/3 from
>it. But how would I get the item 1? Looking at UpdateBuilder leads me to
>believe that if I pass in a builder I can get all these information. But I
>am not sure how to do it.
>  
>

the command by default has a builder assigned. if you want a different 
one, just call command.setBuilder().

The builder produces the DefaultInfoContainer object (I believe at 
least) and these you can get in the CVS Adapter's fileInfoGenerated 
method.. you'll need to cast to the right class..
The files not in the repository should have a question mark as their 
type..(unless they are ignored by the CVS - in that case they won't 
appear at all.)

Hope that helps.

Milos


>Thanks,
>Shantanu Sen
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>
>  
>