1. Installation of the obfuscate4e feature
To install this feature you simply have to use the update site facilities built into the Eclipse IDE.
Inside Eclipse go to Help > Software Updates > Find and Install ... and define a remote site pointing tohttp://obfuscate4e.org/updates/
2. Configure the obfuscation
Now it's time to configure how obfuscate4e and its embedded obfuscator should work. We use the ProGuard obfuscator in this sectin. The configuration of other obfuscators will differ.
Execute the action Create Proguard obfuscation configuration from the context menu of the pluginMANIFEST.MF.
In the project folder appear two new files: customBuildCallbacks.xml andproguard.cfg. These files are managed inside your project (and also version controlled).
ProGuard allows to highly customize the obfuscation process. You can add cunfiguration statements to theproguard.cfg file. See http://proguard.sourceforge.net/manual/usage.html for valid configuration parameters.
3. Obfuscate your code
It's time to use your obfuscator. As it is embedded into the built process Eclipse runs the obfuscator when exporting a plugin, a project or a complete product.
Export a plugin with File > Export ...
The plugin will be obfuscated and exported.