When you added the files, did you specify "-kb" for the add command for the 
binary jar files? If not, you'll have to change the status of the files using 
the cvs admin command as follows:

cvs admin -kb myJarFile.jar
cvs update -A myJarFile.jar
<here, you need to copy the original jar file back over the sandbox version, 
as the sandbox version is corrupted>
cvs commit

This will reset the status of the jar file(s) to a binary format, meaning no 
translation will be done on the file. Then you copy the "good" version back 
over the sandbox (corrupted) version, and commit it.

If you imported (created a NEW module under CVS by importing the entire 
directory structure), it "should have" noted the binary status automatically 
because of the magic numbers, but sometimes it can make mistakes. 

For future reference and possible use now, you can checkout and modify the 
CVSROOT/cvswrappers file from the repository, and add the filename pattern in 
the syntax:

pattern option 'value' [option 'value' ...]
for example, add the following line to make all *.jar files binary when added.
*.jar -m 'COPY' -k 'b'

This tells CVS when a jar file is added, use the "COPY" merge strategy (it 
keeps a complete copy of the file, instead of just the delta version), and to 
mark it as binary mode in the CVS status for the file.

if you modify the cvswrappers file BEFORE you import, you should be able to 
avoid this hassle...

Hope this helps!

On Wednesday 16 February 2005 10:01 pm, Rajeev R wrote:
> Hi all,
> I am using eclipse cvs repository view for downloading the cvs
> repository jar files.
> Could any one pls tell me how the jar files can be downloaded after
> importing them to the cvs repository.
>
> Thanks & Regards,
>
> Rajeev.R
>
>
>
> On Wed, 16 Feb 2005 08:56:45 -0800 (PST), [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
> > Send Info-cvs mailing list submissions to
> >        info-cvs@gnu.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >        http://lists.gnu.org/mailman/listinfo/info-cvs
> > or, via email, send a message with subject or body 'help' to
> >        [EMAIL PROTECTED]
> >
> > You can reach the person managing the list at
> >        [EMAIL PROTECTED]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Info-cvs digest..."
> >
> > Today's Topics:
> >
> >   1. jar files in cvs repository (Rajeev R)
> >   2. RE: jar files in cvs repository (Jesper Vad Kristensen)
> >   3. Re: Undo check out (David A. Bartmess)
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Wed, 16 Feb 2005 17:47:30 +0530
> > From: Rajeev R <[EMAIL PROTECTED]>
> > Subject: jar files in cvs repository
> > To: info-cvs@gnu.org
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=US-ASCII
> >
> > Hi ,
> >
> > We have a cvs repository that contains jar files.
> > When I imported the jar files, I could not get the jar files as such.
> >
> > All the jar files had no content ,when I checked them out from the cvs
> > repository and of 1 KB size .
> >
> > Pictures and .java files are coming perfectly ,but jar files are not
> > downloading perfectly.
> >
> > Could any one please help me in this case,
> > where i want to download jar files from the cvs repository perfectly,
> > when checked out.
> >
> > Thanks & Regards,
> >
> > Rajeev,
> > Software Engineer
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 16 Feb 2005 14:30:42 +0100
> > From: "Jesper Vad Kristensen" <[EMAIL PROTECTED]>
> > Subject: RE: jar files in cvs repository
> > To: <info-cvs@gnu.org>
> > Message-ID:
> >        <[EMAIL PROTECTED]>
> > Content-Type: text/plain;       charset="us-ascii"
> >
> > Raajev,
> >
> > >We have a cvs repository that contains jar files.
> > >When I imported the jar files, I could not get the jar files as such.
> > >
> > >All the jar files had no content ,when I checked them out from the cvs
> > >repository and of 1 KB size .
> > >
> > >Pictures and .java files are coming perfectly ,but jar files are not
> > >downloading perfectly.
> >
> > It's a bit unclear what you're doing, and what you did up to the point
> > where you wish to checkout the files again, but are you sure you didn't
> > by accident corrupt the JAR files (they're BINARY, right, so you gotta
> > -kb them)?
> >
> > Regards,
> >
> > Jesper Vad Kristensen
> > Aarhus, Denmark
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Wed, 16 Feb 2005 06:56:26 -0700
> > From: "David A. Bartmess" <[EMAIL PROTECTED]>
> > Subject: Re: Undo check out
> > To: info-cvs@gnu.org
> > Cc: [EMAIL PROTECTED]
> > Message-ID: <[EMAIL PROTECTED]>
> > Content-Type: text/plain;  charset="iso-8859-1"
> >
> > As Paul said, you don't have to "undo" the checkout. If you checked out a
> > wrong module, remove that directory, and try again. The repository won't
> > have anything locked unless (again, as Paul said) you used the cvs admin
> > command to lock the files...
> >
> > On Wednesday 16 February 2005 12:35 am, Paul Sander wrote:
> > > You don't.  CVS doesn't have the notion of a traditional checkout that
> > > involves locking.  There may be a record in history that a workspace
> > > has been created (which is what CVS calls a "checkout") that can be
> > > countered by invoking the "cvs release" command.
> > >
> > > If, on the other hand, someone is trying to simulate a reserved
> > > checkout mechanism using the "cvs admin" command, there's a different
> > > option to that command that clears the RCS level lock.  But using "cvs
> > > admin" in this manner is strongly discouraged.
> > >
> > > On Feb 15, 2005, at 10:16 PM, [EMAIL PROTECTED] wrote:
> > > > I have wrongly checked out a compononet.  How will I undo this
> > > > checkout.  Removing lock manually is one option but is there any
> > > > other better way to do this.
> > >
> > > --
> > > Paul Sander       | "When a true genius appears in the world, you may
> > > [EMAIL PROTECTED] | know him by this sign:  that all the dunces are in
> > >
> > >                    | confederacy against him."  -- Jonathan Swift,
> > >
> > > writer.
> > >
> > >
> > >
> > > _______________________________________________
> > > Info-cvs mailing list
> > > Info-cvs@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/info-cvs
> >
> > --
> > David A. Bartmess
> > Software Configuration Manager / Sr. Software Developer
> > eDingo Enterprises
> > http://edingo.net
> > _________________________________________________________________
> > jSyncManager Development Team (http://www.jsyncmanager.org)
> > jSyncManager Email List
> > (https://lists.sourceforge.net/lists/listinfo/jsyncmanager-devel)
> >
> > But one should not forget that money can buy a bed but not sleep,
> > finery but not beauty, a house but not a home,
> > medicine but not health, luxuries but not culture,
> > sex but not love, and amusements but not happiness.
> >
> > ------------------------------
> >
> > _______________________________________________
> > Info-cvs mailing list
> > Info-cvs@gnu.org
> > http://lists.gnu.org/mailman/listinfo/info-cvs
> >
> > End of Info-cvs Digest, Vol 27, Issue 40
> > ****************************************
>
> _______________________________________________
> Info-cvs mailing list
> Info-cvs@gnu.org
> http://lists.gnu.org/mailman/listinfo/info-cvs

-- 
David A. Bartmess
Software Configuration Manager / Sr. Software Developer
eDingo Enterprises
http://edingo.net
_________________________________________________________________
jSyncManager Development Team (http://www.jsyncmanager.org)
jSyncManager Email List
(https://lists.sourceforge.net/lists/listinfo/jsyncmanager-devel)
 
 But one should not forget that money can buy a bed but not sleep, 
 finery but not beauty, a house but not a home, 
 medicine but not health, luxuries but not culture, 
 sex but not love, and amusements but not happiness.


_______________________________________________
Info-cvs mailing list
Info-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/info-cvs

Reply via email to