This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Plugins

1 reply
David Pollak
Joined: 2008-12-16,
User offline. Last seen 42 years 45 weeks ago.

An example would be great... and how do you specify the plugin from maven?

My plugin will initially enforce json serializability, then I'll add serializers automagically and if that works, I'll emit javascript that reflects the scala defined methods (scala to javascript conversion for a subset of the scala language.)

On Jun 8, 2009 5:56 PM, "Josh Suereth" <joshua [dot] suereth [at] gmail [dot] com> wrote:

I remember running into an issue where StdPhase was not visible from the package I was using.  I simple extended Phase (has the same constructor as StdPhase), and kept moving along.

If you want an example of creating/testing a scalac plugin (using maven), check out: http://github.com/jsuereth/osgi-scalac-plugin/tree/master

I hope to finalize that project if/when I start using OSGi in production again.

-Josh

On Mon, Jun 8, 2009 at 7:06 PM, David Pollak <feeder [dot] of [dot] the [dot] bears [at] gmail [dot] com> wrote: > > > > On Mon...

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Plugins
http://www.scala-tools.org/mvnsites/maven-scala-plugin/usage_scalac_plugins.html

I tried to send this earlier, but apparently I'm bad with technology.


On Mon, Jun 8, 2009 at 9:42 PM, David Pollak <feeder [dot] of [dot] the [dot] bears [at] gmail [dot] com> wrote:

An example would be great... and how do you specify the plugin from maven?

My plugin will initially enforce json serializability, then I'll add serializers automagically and if that works, I'll emit javascript that reflects the scala defined methods (scala to javascript conversion for a subset of the scala language.)

On Jun 8, 2009 5:56 PM, "Josh Suereth" <joshua [dot] suereth [at] gmail [dot] com> wrote:

I remember running into an issue where StdPhase was not visible from the package I was using.  I simple extended Phase (has the same constructor as StdPhase), and kept moving along.

If you want an example of creating/testing a scalac plugin (using maven), check out: http://github.com/jsuereth/osgi-scalac-plugin/tree/master

I hope to finalize that project if/when I start using OSGi in production again.

-Josh

On Mon, Jun 8, 2009 at 7:06 PM, David Pollak <feeder [dot] of [dot] the [dot] bears [at] gmail [dot] com> wrote: > > > > On Mon...


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland