Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

NetBeans 6: Matisse Updates

NetBeans 6 delivers great updates to the Matisse GUI builder. Spend a few minutes with Roman Strobl and get an expert briefing on what's new and what has changed.

Introduction to Groovy Part 3

In this, the third and final installation of Andres' Introduction to Groovy series, you learn about how Groovy handles variable numbers of arguments, named parameters, currying, and more about Groovy operators. Including, some new operators.

Easier Custom Components with Swing Fuse

Swing Fuse (actually just Fuse), is a framework designed to make it easier to create your own custom desktop components. In this article, Daniel Spiewak shows you how to get started and provides sample source code you can download.

Benchmark Analysis: Guice vs Spring

Willam Louth shows how he uses JXInsight Probes to investigate probable performance issues with code bases that he is not familiar with. He also highlights possible pitfalls in creating a benchmark, as well as in the analysis of results.
Replies: 0 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

Eclipse: Compare More Than Just Text Files

At 10:14 PM on Jul 18, 2005, R.J. Lorimer wrote:

Most Eclipse users know that Eclipse can compare Java, text, and property files in 3.1, each with support for any internal structures. Java file comparisons can show you the differences based on methods, fields, and classes, and property files can show them on a per-property basis. These structural comparisons are nice because they aren't thrown off by the ordering of the file changing (in the case of sorting Java members, or rearranging property file entries) like a traditional 'diff' may be. There isn't much internal structure to a text file per-say, so a plain-text file has no structural compare, but the comparison engine is still fairly strong none-the-less.

However, many developers aren't aware of the fact that Eclipse can also compare the internal structure of JAR files (and ZIP files by that same admission). Obviously, given the binary nature of a JAR file, a structural comparison is a must. Thankfully, the comparison editor for JAR files is designed to center around the tree structure of the JARs being compared.

To compare two JAR files, simply select them in the navigator or package explorer, right click, and click 'Compare with Each Other':

Once done, you are given the opportunity to traverse the two different JAR structures and compare any differences, *including* a nested comparison of internal members (such as java files, property files, and text files - as seen below).

The jar comparison tool can even compare nested JAR files!

Until next time,

R.J. Lorimer
Contributing Editor - rj -at- javalobby.org
Author              - http://www.coffee-bytes.com
Software Consultant - http://www.crosslogic.com


thread.rss_message