Installing ANT contrib for Eclipse

Warning: Illegal string offset 'language' in /var/www/vhosts/ on line 510 Warning: ksort() expects parameter 1 to be array, string given in /var/www/vhosts/ on line 513

A quick step by step guide to installing ANT-contrib for Eclipse (on Windows).

  1. Download ANT-contrib:
  2. Extract the zip to your harddrive, I extracted it to C:/ant-contrib/
  3. Include ANT-contrib in your ANT build file, so you don’t have to set it up every time you create a new project. (See XML below)
  4. All done!

Additional XML in ANT build script:

  1. <taskdef resource="net/sf/antcontrib/">
  2. <classpath>
  3. <pathelement location="[full path to ant-contrib jar]"/>
  4. </classpath>
  5. </taskdef>


Howto create a color-scheme for FDT

I’ve been wanting to be able to use a different color-scheme (or theme) for FDT for a while. After some investigation I found out how to do this.

FDT dark color scheme

I’ve created the color scheme above and stored in an epf file, you can download it here: (right click and save as…)

Creating the scheme

  1. Modify your preference for text appearance (see ‘Eclipse + FDT colors‘)
  2. Hit File > Export > General > Preferences and save in a convenient location
  3. Open the saved file in your favourite text editor and remove everything that’s not color related. There are a couple of exceptions to this though, see ‘Eclipse + FDT colors update‘. Others you’ll probably find out in a trial and error proces.
  4. Add ‘file_export_version=3.0’ to the top of your file, so Eclipse knows what version the preferences were exported for. (You can also not delete this line in step 3.) If you omit adding ‘file_export_version=’ the importing of the preferences will fail.
  5. Save the file and you’re done!

Importing a scheme

  1. Hit File > Import > General > Preferences
  2. Click ‘Next’.
  3. Select the scheme to import and click ‘Finish’
  4. All done!

Eclipse + FDT colors update

I figured out what was missing in my previous attempt to store and then load my color preferences. You need to include what version of Eclipse the preferences file is exported for.


A couple of other things include some boolean settings for not using the system background color and using the ruler (line numbers).


Eclipse + FDT colors

I’m trying to figure out a nice way to apply a color theme to Eclipse. So far no luck, but I have found the places where to edit color settings.

First got to Window > Preferences, then change the color settings in the following locations:

  1. General > Editors > Text Editors
  2. General >Appearance > Color and Fonts
  3. FDT > Editor > Colors
  4. FDT > Editor > Semantic Highlight

Some ideas to explore: (Modify the *.epf file to include FDT settings? Create a nice color scheme and export settings using File > Export > General > Preferences) (Skin plug-in, see how to get this to work with FDT)

Update: Exported preferences, now trying to figure out how to strip all non color scheme related information.

Update 2: Found a doable way to create a color scheme for FDT, read the howto.