Contributing to JSDT #1: Setting up Build Target
I’m not on the JSDT team, so this may not be exactly how they do it. But it works for me.
First you will need to set up your PDE Target.
The WTP Downloads page is where to start.
Download the following:
I unzipped these into individual folders, someplace where you keep pristine PDE targets separate from your daily running Eclipse. For example, I unzipped GEF into c:/code/buildTargets/GEF3.6.
Setting up the Target
Now, we’ll combine all these into a single PDE Build Target.
- Under Preferences – Plugin Development – Target Platform, select Add:
Select “Start with Nothing” , then Next.
In the Locations Tab, we will add each of the installed components from our buildTargets folder. Select Add – Directory – Next – then Browse the location.
(Note: when selecting, choose the eclipse folder under each target.)
Do this for each of the 6 downloads above.
Then give your target a meaningful name such as JSDT_Target.
Then click Finish.
In the Preferences dialog, change the active build target to the new “JSDT_Target” and hit OK.
Now your JSDT code– which we have not yet imported– will compile against the expected target platform.
- Modular Mind has some great articles on PDE build targets.