Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357258 - Update build process to transform generated runtime classes with SMAPs
Summary: Update build process to transform generated runtime classes with SMAPs
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 12:07 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments
Class file containing SMAP data (110.16 KB, image/png)
2012-06-19 08:46 EDT, Justin Spadea CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-09-09 12:07:51 EDT
See bug 357257 - for 1.0 we need to update the build process to add SMAP data to the generated runtime class files. Also, we need to start putting the SMAP files into the Java runtime project when the parts are generated.

customBuildCallbacks.xml can be used to run a task after the build produces the class files. At this time it's not known if the transformer class from the debug plug-in will be visible. If it isn't, the task can do a CVS checkout, run javac on the transformer class, and invoke it for each SMAP file using a fileset.
Comment 1 Justin Spadea CLA 2012-06-12 09:46:01 EDT
I've added the following files to each of the four Java runtime projects:

build/transformer.jar
build/customBuildCallbacks.xml

transformer.jar is built from the org.eclipse.edt.debug.core project and contains a main class that runs a transformation recursively on a directory for SMAPs. customBuildCallbacks.xml kicks this process off after the project is compiled.
Comment 2 Xiao Bin Chen CLA 2012-06-19 04:24:00 EDT
Hi Justin,
I am writing test scenario for this enhancement. I am not familiar with this enhancement. Could you give me some basic knowledge for this enhancement and how to test this?
Comment 3 Justin Spadea CLA 2012-06-19 08:46:41 EDT
Created attachment 217543 [details]
Class file containing SMAP data

The easiest way to check it is to open up the Java runtime plug-ins from the build, and for the files that have corresponding *.eglsmap files, open up the .class files in a text editor, scroll to the end of the binary data, and the SMAP contents should be displayed. See the attached screenshot with the SMAP file on the left, and the class file on the right containing the SMAP data.
Comment 4 Justin Spadea CLA 2012-06-22 10:02:05 EDT
Verified