Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 159240 - Add hook for obfuscation
Summary: Add hook for obfuscation
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.4 M4   Edit
Assignee: pde-build-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 04:19 EDT by jan.koehnlein CLA
Modified: 2007-11-22 16:44 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jan.koehnlein CLA 2006-09-29 04:19:56 EDT
For building commercial products based on eclipse a hook for obfuscation in an automated build is needed. This includes also the build of update-sites. At the moment there is only a possibility to enable/disable signing of jars but ONLY for "packaged" builds - not for update-site-builds

What would be usefull is a hook which is called every time a jar was generated.
Comment 1 Pascal Rapicault CLA 2006-09-29 09:21:51 EDT
Please check the page
http://help.eclipse.org/help32/topic/org.eclipse.pde.doc.user/guide/tasks/pde_custom_callbacks.htm

These hooks have been added to address this kind of problems.
Closing for now, but please let us know if this is still a problem.
Comment 2 jan.koehnlein CLA 2006-09-29 09:31:35 EDT
We are aware of these hooks.

The problem is, that most obfsucators work on jars and not on class files. 

Note that the build.jars target does not build any jar files in the PDE context (!) Instead of that, the jar files are created by several zip targets in different places e.g. build.update.jars and in the main task of the packager's ant file. 

There is neither a common place where the jar files for plugins are created nor 
is there a hook to be called directly after the creation of a jar file, no matter if you are building a packaged product or an update site.
Comment 3 Andrew Niefer CLA 2007-11-22 16:44:12 EST
Hooks have been added in HEAD, see org.eclipse.pde.build/templates/headless-build/customAssembly.xml.

This file must be copied into the builder directory.

There are pre.jarsigning and post.jarUp targets which may be used to obfuscate.