jira.codehaus.org

  • Log In Access more options
    • Online Help
    • 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)
Signup
Mojo's Maven plugin for WebLogic
  • Mojo's Maven plugin for WebLogic
  • MWEBLOGIC-14

Support catalog for ClientGen

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    0

Description

ClientGen9Mojo should support the Catalog attribute. Sorry I don't have the ability to provide a proper patch, but the code need only add a new catalog attribute and add the following code:

// clientGen.setCatalog( new File( this.catalogFile ) );
method = ReflectionUtils.getSetter("catalog", clientGen.getClass());
if (method != null) {
method.invoke(clientGen, new Object[]

{ new File( this.catalogFile ) }

);
}

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mike Calmus added a comment - 25/Aug/10 9:40 AM

As these classes are updated by Oracle it seems like there it becomes increasingly difficult to support new options. It might make sense to store all property values in a map and use reflection to set all of them on the underlying ant task so that future updates and new values can be automatically supported without requring additional code changes to the Mojo. New values could be explicitly added later with getters and setters, but this would allow new features to work as soon as they were available.

Show
Mike Calmus added a comment - 25/Aug/10 9:40 AM As these classes are updated by Oracle it seems like there it becomes increasingly difficult to support new options. It might make sense to store all property values in a map and use reflection to set all of them on the underlying ant task so that future updates and new values can be automatically supported without requring additional code changes to the Mojo. New values could be explicitly added later with getters and setters, but this would allow new features to work as soon as they were available.

People

  • Assignee:
    David J. M. Karlsen
    Reporter:
    Mike Calmus
Vote (0)
Watch (0)

Dates

  • Created:
    24/Aug/10 3:49 PM
    Updated:
    25/Aug/10 9:40 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.