Skip to content

Detect unnecessary services and files for Ofbiz (good for refactoring ;)

License

Notifications You must be signed in to change notification settings

holdfenytolvaj/org.ucdetector.ofbiz

Repository files navigation

Apache OFBiz specific extension for the (very useful) unused code detector (http://www.ucdetector.org)
this extension is super useful after refactoring or long time customization where 
some of the services (and other items) are not used any more.

- mark methods that looks like a service but doesn't have a definition
- mark services (in the xml definition) that are not called from anywhere
- mark ftl files that are not included from screen definitions or include/import statement
- mark bsh/groovy files that are not included from screen definitions
- mark screens that are not referenced from views or rendered programmatically
- mark views that are calling not existing screens or not called from controllers

--- How to use -------------------------------------
1) Grab the latest release from https://github.com/holdfenytolvaj/org.ucdetector.ofbiz/releases
2) You need to put both jars into eclipse's dropin folder.
   (In Ubuntu: ~/.eclipse/org.eclipse.platform../dropins)
3) Start eclipse
4) Right click on Project -> select UCDetector -> Analyze Ofbiz
5) Add the tab "Markers" to your view
6) Some report will be generated under /workspace/ucdetector_reports (this can be configured on the options)


--- How to modify ---------------------------------- 
you need to checkout first the org.ucdetector project from:
http://www.ucdetector.org/custom.html
and then follow the steps there. This extension follows the 
original plugin's coding style, lets respect that.
To build you have to apply the patch found in the build directory.

About

Detect unnecessary services and files for Ofbiz (good for refactoring ;)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages