Monday, August 10, 2015

Extracting icons from Eclipse directory

I am always in need for icons that I want to use in my own plugins. Unfortunately hunting them down is quite a task that involves finding plugins that contain the icons, opening jar files and extracting the icons. To ease this task I wrote a little script that does this for you
  1. #!/bin/bash  
  2. FILES=/path/to/eclipse/plugins/*jar  
  3. for f in $FILES  
  4. do  
  5.  echo "Processing $f file\n:"   
  6.  jar xf $f icons   
  7. done  
After running this script an icon folder will be created with all the icons extracted from the plugins directory. I suppose next logical step would be to enhance this script to query Eclipse repository directly.

Blogger Syntax Highliter