|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CVS with ICS |
« View previous topic :: View next topic » |
Author |
Message
|
fponcet |
Posted: Mon Nov 21, 2005 4:10 pm Post subject: CVS with ICS |
|
|
Acolyte
Joined: 20 Oct 2005 Posts: 55
|
Hi,
I am using CVS and I would like to know how I can analyze the diferences in files that are not .java. For example, I have one business object in the CVS repository and the same file with differences in my local project but it looks like ICS does a binary comparation which of course is not useful.
Is there any way to do a text comparation or something useful with non-java files?
Thanks
Felipe |
|
Back to top |
|
 |
Ratan |
Posted: Mon Nov 21, 2005 4:34 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I usually use Textpad for file comparisons. _________________ -Ratan |
|
Back to top |
|
 |
jsware |
Posted: Tue Nov 22, 2005 5:08 am Post subject: |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
I have not used ICS, but if it uses the Eclipse tooling (like WBIMB/WMB and WMQ v6) then it is Eclipse that is doing this for you.
One thing I noticed when installing WBIMB (v5) was that some it did not seem to add the file types, thus types such as esql are coming up as binary because Eclipse does not know any better.
Lets say for example that ICS creates text based files with the "ICS" extension to store extra information - it probably doesn't but what do I know - I haven't used ICS
You can tell your Eclipse based tooling for ICS that *.ICS files should be treated as text and not binary by CVS. First load up the tooling and then go to Window->Preferences menu option. Now under the "Team" folder in the Preferences dialog, you'll see "File Content". Select that and it will show you each file extension and how it treats those files. By default anything not in this list gets treated as binary.
You need to add ICS to the list, so click the Add... button and enter the file extension (just ICS on its own, not "*.ICS" or ".ICS"). Now when you have done this, it will appear in the list. If it appeas with binary under the contents column, just select the line by licking on the contents column. You can then drop down the list and change the type to binary.
Click OK to save the preferences and you're half way there. Now you need to go and change your already binary files you have added to CVS and make then text. To do this, right click on each file and select Team->Change ASCII/Binary Property from the popup menu. You can then select what kind of "keyword substitution" should occur.
You can select Automatic, Binary, ASCII without keyword subst and ASCII with keyword subst. Keyword Subst allows CVS to change certain keyword in the file when it is checked in. This is typically used to embed version information into source code comments and text strings. If you put $Id$ in a comment, or a text string, when committed into CVS, it will be expanded out with the file name, version, last checking date etc. etc. There are a number of other keywords to.
Changing your type to Automatic should be what you want. You will need to check under Windows->Preferences/Team/CVS what the "Default keyword substitution" is as this is what the automatic mode will use. Its best to choose your preferred one from there as this is what new files you add to CVS will get (i.e. they get Automatic).
If you have many files to change, you can select multiple files from the Resource Navigator in Eclipse and then use the popup menu option to change the ASCII/Binary property of them all in one go. _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|