wood burning stoves 2.0*
The moose likes JForum and the fly likes CVS for Dummies Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "CVS for Dummies Help" Watch "CVS for Dummies Help" New topic
Author

CVS for Dummies Help

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hy Guys!!!

I'm having a problem that is already fixed at CVS.
So, I downloaded the CVSNT 2.0.51d program.
At http://www.jforum.net/development.jsp there are some important information about how to connect to CVS, but it's writted to CVS "experts", and I'm not one yet... ops:

I would like a tip, a link or else some instructions about how to download the newer versions of the files that are with bugs at my machine, but corrected at CVS.

Somebody could help me?

[ ]'s
[originally posted on jforum.net by leandro_salvador]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
D:
cd D:\Sources\cvs
d:\cvsnt\cvs -d:pserver:guest@cvs.dev.java.net:/cvs login
d:\cvsnt\cvs -d:pserver:guest@cvs.dev.java.net:/cvs co jforum
d:\cvsnt\cvs -d:pserver:guest@cvs.dev.java.net:/cvs logout

[originally posted on jforum.net by redhand]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
TKS redhand!!!

I followed your commands and it's downloading JForum's CVS version right now, while I write it!

So, it's downloaded in a different folder, which I named "cvs", at the following path:
C:\tomcat\webapps\jforum\cvs\jforum

I imagine that would find a way to compare the files, changing the newer over the older, am I right?

I know that Linuxes has diff, but what should I do at rWindows?

In fact, I really don't know what are the files Rafael telled me to substitute about the bug I'm having here. It's about use GMail as SMTP server, but I'm a JForum's dummy yet ops:

Manually compare the files is stupid, I know! Some suggestion???

[ ]'s
[originally posted on jforum.net by leandro_salvador]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I dunno what's files Raphael said you to substitute but when I've to deploy a new cvs version, I copy all *.class because initial install should be compiled with a different version of java, then all others files in their respectives directory regardless they are or not present in destination (e.g. a new properties file) Only one except is template (*.htm) if you have made some modifications, you could easily use some free tools like windiff to quiclky made the diff and apply it
[originally posted on jforum.net by redhand]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
redhand wrote:I dunno what's files Raphael said you to substitute but when I've to deploy a new cvs version, I copy all *.class because initial install should be compiled with a different version of java, then all others files in their respectives directory regardless they are or not present in destination (e.g. a new properties file) Only one except is template (*.htm) if you have made some modifications, you could easily use some free tools like windiff to quiclky made the diff and apply it


So, what do you suggest me? The CVS version only has the source *.java. The local installation only the *.class. I tried to compile some files that I suppose to have the bug, but the compilation wasn't successful! I really don't know what to do, because now I have the newest source files in a CVS folder, and some bug files in my JForum folder. How to merge it correctly?
[originally posted on jforum.net by leandro_salvador]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
In the CVS directory, there is a file "build.xml". This file is used by Ant to compile *.java to *.class so you have to use Ant to make a new build from sources. This CVS is not a repository for binaries like *.class.
So after installating Ant, go to cvs/jforum in shell and type command "ant", that should build every *.java to class.
If you can't I can provide you some zip containing last build from CVS
[originally posted on jforum.net by redhand]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
redhand wrote:In the CVS directory, there is a file "build.xml". This file is used by Ant to compile *.java to *.class so you have to use Ant to make a new build from sources. This CVS is not a repository for binaries like *.class.
So after installating Ant, go to cvs/jforum in shell and type command "ant", that should build every *.java to class.
If you can't I can provide you some zip containing last build from CVS


Greatest tips redhand!!!
I already had ant here and it deployed correctly: BUILD SUCCESSFUL!!! :idea:
It's interesting that after do it, the source files were deleted...
I will ask you something simple, but is a procedure that done everytime would be easy.
How do you do the upgrade from CVS to local files?
It's my bit:
1. Install JForum: C:\tomcat\webapps\jforum\
2. Create a CVS folder: C:\tomcat\webapps\jforum\cvs\
3. Download all the files from CVS server to local CVS folder
4. Deploy the CVS' files with ANT
5. Substitute the old *.class by the new *.class created by ANT

:arrow: At the 5th procedure is my deal! How do you do it? Copy & Paste? Manually? Change all folders? Delete the original JForum and overwrite it with the last one CVS release, no fear?
[originally posted on jforum.net by leandro_salvador]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I don't think you can safely replace only the changed classes. I replace the whole WEB-INF/classes directory on my production copy with the newly compiled classes.

still, it is CVS current after all and not STABLE so you are taking a risk.
[originally posted on jforum.net by ken0]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
ken0 wrote:I don't think you can safely replace only the changed classes. I replace the whole WEB-INF/classes directory on my production copy with the newly compiled classes.

still, it is CVS current after all and not STABLE so you are taking a risk.


Hi ken0!!!

TKS for your attention!!!

It's exactly because of the risk which I don't want to assume, that I would like to change just the specific classes with the bug I'm trying to resolve.

But, anyway, I appreciate your tip: WEB-INF/classes directory!!!

Soon I'll try it: rename the current WEB-INF/classes to something like WEB-INF/classes-BKP (in case of problems) and paste the CVS one!

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CVS for Dummies Help