So I'm building the sbt plugin, then trying to use it in another
project. I'm finding that to refresh the plugin whenever I've done a
'publish-local' in the plugin build, I've gotta manually delete all
the directories in project/plugins/* in the project I want to use the
plugin in - otherwise it doesn't bother to detect its changed or
rebuild the source code.
I wondered if there was a cunning feature in sbt to force the rebuild
of plugins when they've changed (tried all the clean-* goals and doing
"update" and "reload" to no avail). I guess I should hack a new action
- but just wondered if I was missing something first..
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
-Mark
>> simple-build-t...@googlegroups.com<simple-build-tool%2Bunsu...@googlegroups.com>
We should add this into the sbt Project class or one if its base
classes or traits shouldn't we?
On Feb 4, 7:57 pm, Stefan Langer <mailtolan...@googlemail.com> wrote:
> I didn't find a way so I wrote my own task
> lazy val cleanPlugins = task {
> Console.println(info.pluginsPath)
> val paths = info.pluginsPath / "target" ::
> info.pluginsPath / "src_managed" ::
> info.pluginsPath / "lib_managed" ::
> info.pluginsPath / "project" :: Nil
> FileUtilities.clean(paths, true, log)
> None
> }
> Put this in your project file and then call it via cleanPlugins in sbt
> console.
>
> -Stefan
>
> 2010/2/4 James Strachan <james.strac...@gmail.com>
>
>
>
> > I'm experimenting hacking up an sbt plugin (to render nice HTML output
> > for test results with hyperlinks in the stack traces which when
> > clicked should open the file at that line in your IDE as per this
> > thread...
> >http://groups.google.com/group/simple-build-tool/msg/3d5feb82569840e0
>
> > So I'm building the sbt plugin, then trying to use it in another
> > project. I'm finding that to refresh the plugin whenever I've done a
> > 'publish-local' in the plugin build, I've gotta manually delete all
> > the directories in project/plugins/* in the project I want to use the
> > plugin in - otherwise it doesn't bother to detect its changed or
> > rebuild the source code.
>
> > I wondered if there was a cunning feature in sbt to force the rebuild
> > of plugins when they've changed (tried all the clean-* goals and doing
> > "update" and "reload" to no avail). I guess I should hack a new action
> > - but just wondered if I was missing something first..
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "simple-build-tool" group.
> > To post to this group, send email to simple-b...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > simple-build-t...@googlegroups.com<simple-build-tool%2Bunsubscr i...@googlegroups.com>
-Mark
>> <simple-build-tool%2Bunsu...@googlegroups.com<simple-build-tool%252Buns...@googlegroups.com>