View RSS Feed

My Java Tips

Safe JAR file migration in Eclipse

Rate this Entry
by , 05-21-2011 at 10:48 PM (3538 Views)
Its always a good idea to include refactoring information into the JAR file when you are exporting it from Eclipse. Eclipse’s JAR Export Wizard offers this option.

Here is how it works:

  • File > Export
  • Select JAR file
  • Select: Export refactorings for checked projects


This is very useful because then all the clients that are using older version of JAR will be able to migrate an old version of the JAR file to a new one using the Refactor > Migrate JAR File... refactoring. Now this refactoring automatically updates all code which is dependent on the old version of the JAR file to use the new version of the JAR file.

Submit "Safe JAR file migration in Eclipse" to Facebook Submit "Safe JAR file migration in Eclipse" to Digg Submit "Safe JAR file migration in Eclipse" to del.icio.us Submit "Safe JAR file migration in Eclipse" to StumbleUpon Submit "Safe JAR file migration in Eclipse" to Google

Tags: jar, refactoring Add / Edit Tags
Categories
Eclipse

Comments