|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Any Java code or General Text comparison tool |
« View previous topic :: View next topic » |
Author |
Message
|
vicks_mq |
Posted: Thu Oct 12, 2017 6:15 am Post subject: Any Java code or General Text comparison tool |
|
|
Disciple
Joined: 03 Oct 2017 Posts: 162
|
hi, is there any Java code or general Text file comparison tool is there which ignores the whitespaces. I am having multiple files to compare, they seems identical except whitespaces difference in them and due to that I have to go line by line to see if there is any other differences but only difference is whitespaces, can some tool ignore it completely? all kind of whitespaces, tabs etc. |
|
Back to top |
|
 |
zpat |
Posted: Thu Oct 12, 2017 6:36 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Beyond Compare _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 12, 2017 7:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
DiffDog _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Fri Oct 13, 2017 8:40 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri Oct 13, 2017 9:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
For java code, Eclipse can format both peices of code, to have the same whitespace. You can then compare them.
For plain text files, you can use Eclipse's find/replace to convert spaces to tabs, or the other way around or convert n spaces to m spaces, and then use the compare function.
But you can also simply tell the compare to ignore whitespace.
You probably already have Eclipse in use. _________________ chmod -R ugo-wx / |
|
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
|
|
|
|