Scala projects with Eclipse PDE Build (2)
Some time ago, I wrote about
how to let Eclipse PDE Build automatically compile Scala projects.
For this, a special Ant script (
customBuildCallbacks.xml) had to be
created in the project’s root directory. This script looked for the
Scala library and compiler and then built the project’s source files.
This method still works. The OSGi bundles containing the Scala library and compiler are delivered together with the Scala IDE for Eclipse. This project is now not affiliated with the EPFL anymore and is developed mostly independently from the Scala tool chain. Due to this, the OSGi bundle names have changed and the Ant script from my previous post does not work anymore.
The following things have to be changed:
- The symbolic name of the Scala library OSGi bundle now starts with
- The compiler is now provided by a bundle whose name starts with
- The Scala Ant task now resides in
scala-compiler.jar, which is provided by the compiler bundle
I created a new script that can be downloaded here:
customBuildCallbacks.xml (4.0 KiB)
Posted by Michel Krämer
on 20 November 2010
This post introduces the open-source library bson4jackson, which is an extension to the Jackson JSON processor. It enables you to parse and generate documents in a binary JSON format called BSON.
Buckminster is a tool to build Eclipse RCP applications. It contains a lightweight Eclipse SDK and features but no means to build Scala projects yet. This post tries to bridge this gap.
The Scala IDE does not support Eclipse PDE yet. This article explains how to configure your OSGi-based project, so you can run your PDE build in headless mode and compile your Scala code.
gradle-download-task is a Gradle plugin that allows you to download files during the build process. This post summarizes common patterns and use cases of gradle-download-task and provides useful tips and tricks.