Jan 10, 2008

Exporting Jar - the easy way

There might be times where you want to create the same Jar file again and again. You don't have to run the Jar Export wizard every time you run the wizard. You can save the description of the Jar Export in the workspace and just right click to create the Jar. Here is what you need to do:

  • In the first page, check the Overwrite existing files without warning (This is optional, but if you are frequently creating the jar, this helps you saving from the little annoying dialog)


  • In the second page of Jar Export Wizard, check "Save the description of this JAR" and give the location to save


  • The next time you want to create the jar, just right click the *.jardesc file and select "Create Jar"
One problem with this Jar Export Wizard is that it was designed to export Jars outside workspace. This forces the jar description file is hardcoded with the destination, which means you can't share this jardesc file with your teammates (unless they want the jar exactly in the same location in their local disks) In case you are interested in exporting to a jar inside the workspace or exporting to a relative location, vote for this bug.

0 comments: