Grails JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
Grails
  • Grails
  • GRAILS-3180 Top level task: Improvements to Grail...
  • GRAILS-2285

ability to override a plugin's artefacts

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-RC4
  • Fix Version/s: 1.3-RC1
  • Component/s: None
  • Labels:
    None

Description

It should be possible to override services/controllers/etc; summary of problem:

I've written a plugin, called MyPlugin.

I've written an app, called MyApp; which is designed to use MyPlugin for
base/default functionality.

MyPlugin provides a service, called ThisService.

MyApp needs to override or replace the ThisService service.

However when I try to run MyApp, or install MyPlugin into MyApp, when MyApp
has its own ThisService - I get a: "Invalid duplicate class definition of
class ThisService" exception.

This is a major hassle - to get around it I need to temporarily remove
MyApp's ThisService, then install (or) re-install MyPlugin, then remove
MyPlugin's ThisService; then finally put MyApp's ThisService back into
place so that I'm able to continue development/testing with MyApp.

More info:

http://www.nabble.com/how-to-override-a-service-provided-by-a-plugin--to15035806.html

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    _GrailsCompile.groovy.patch
    28/Apr/09 4:49 PM
    1 kB
    Lari Hotari

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Git Commits
No work has yet been logged on this issue.

People

  • Assignee:
    Graeme Rocher
    Reporter:
    Corey
Vote (8)
Watch (9)

Dates

  • Created:
    26/Jan/08 2:05 PM
    Updated:
    11/Jun/10 4:10 AM
    Resolved:
    24/Mar/10 8:35 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.1#813-sha1:277a546)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Grails project. Try JIRA - bug tracking software for your team.