project file hacking is needed in order to compile scala code in a plugin project. Unfortunately PDE and Scala projects to not work together out of box. This will allow bundles in your workspace to use the scala library without requiring the complete scala development environment. In order to make the scala library available stand alone you must copy the lib/scala-library.jar file from the ch. plugin into the eclipse/plugins directory of your development target. The scala library is packaged as a bundle but it is embedded in the ch. plugin. But in order to develop bundles with scala code you need to make the scala library available for bundles to depend on. This will install the necessary tools for compiling scala code in your workspace. The web site indicates that only 3.2 is supported but it works fine on the latest 3.3 builds. There is a Scala Eclipse plugin available for developing scala code. The point of this document is to quickly get a hello world scala bundle running in a self-hosting PDE workspace. Much of this is already documented on Neil Bartlett's blog at An OSGi Bundle… built in Scala. This document will demostrate a simple hello world scala bundle. So it seems to be able to interoperate with Java, but can it interoperate with OSGi? The answer seems to be yes. It is also fully interoperable with Java. It smoothly integrates features of object-oriented and functional languages. Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. 3.2 Add a dependency on the scala library.3.1 Create a Plugin project for Scala code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |