Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find unused resource files (.jsp, .xhtml, images) in Eclipse

Tags:

file

eclipse

I'm developing a large web application in Eclipse and some of the resources (I'm talking about files, NOT code) are getting deprecated, however, I don't know which are and I'm including them in my ending war file.

I know Eclipse recognizes file paths into its directory because I can access the link to an image or other page while I'm editing one of my xhtml pages (using Control). But is there a way to localize the unused resources in order to remove them?

like image 578
Xtreme Biker Avatar asked Mar 14 '13 10:03

Xtreme Biker


1 Answers

Following these 3 steps would work for sites with a relatively finite number of dynamic pages:

  1. Install your site on a filesystem mount'ed with atime (access time).

  2. Try harvesting the whole site with wget.

  3. Use find to see which files were not accessed recently.

Done.

like image 158
cnst Avatar answered Oct 08 '22 13:10

cnst