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
Maven 2.x Castor Plugin
  • Maven 2.x Castor Plugin
  • MCASTOR-7

Maven 2 castor plugin

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Hi. I created a Maven 2 version of the castor plugin. Hope you can check it out. Thanks.

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

Attachments

  1. Hide
    Zip Archive
    maven-castor-plugin.zip
    24/Aug/05 5:47 PM
    7 kB
    John Tolentino
    1. XML File
      maven-castor-plugin/pom.xml 1 kB
    2. Java Source File
      maven-castor-plugin/.../CodeGeneratorMojo.java 5 kB
    3. Java Source File
      maven-castor-plugin/.../CodeGeneratorMojoTest.java 11 kB
    4. XML File
      maven-castor-plugin/src/.../mapping.xml 0.3 kB
    Download Zip
    Show
    Zip Archive
    maven-castor-plugin.zip
    24/Aug/05 5:47 PM
    7 kB
    John Tolentino

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 21/Aug/05 12:48 AM

feel free to commit this. We can review from there. Also, please don't use .rar, it's very uncommon to be installed. tar.gz or tar.bz2 o even .zip are better.

feedback no the POM:

  • please inherit the mojo parent and remove an elements you inherit from there
  • please remove the license section - it is incorrect (and should be inherited anyway)
  • please remove the test source directory (that's the default anyway)
  • please set the version to 1.0-SNAPSHOT until it is properly released

Feedback on the code:

  • I don't understand the expressions you have. castor is not the right base directory to use, and non-expressions should be in default-value
  • boolean types should use boolean, not String to make the code cleaner
  • please use the Maven code formatting
  • please avoid catching Exception
  • please don't print stack traces - throw them wrapped in a MojoExecutionException
Show
Brett Porter added a comment - 21/Aug/05 12:48 AM feel free to commit this. We can review from there. Also, please don't use .rar, it's very uncommon to be installed. tar.gz or tar.bz2 o even .zip are better. feedback no the POM: please inherit the mojo parent and remove an elements you inherit from there please remove the license section - it is incorrect (and should be inherited anyway) please remove the test source directory (that's the default anyway) please set the version to 1.0-SNAPSHOT until it is properly released Feedback on the code: I don't understand the expressions you have. castor is not the right base directory to use, and non-expressions should be in default-value boolean types should use boolean, not String to make the code cleaner please use the Maven code formatting please avoid catching Exception please don't print stack traces - throw them wrapped in a MojoExecutionException
Hide
Permalink
Brett Porter added a comment - 21/Aug/05 12:48 AM

you also shouldn't need the filesystem tool - you can get this from FileUtils in commons-io

Show
Brett Porter added a comment - 21/Aug/05 12:48 AM you also shouldn't need the filesystem tool - you can get this from FileUtils in commons-io
Hide
Permalink
John Tolentino added a comment - 24/Aug/05 5:47 PM

Updated code to address all issues identified.

Show
John Tolentino added a comment - 24/Aug/05 5:47 PM Updated code to address all issues identified.
John Tolentino made changes - 24/Aug/05 5:47 PM
Field Original Value New Value
Attachment maven-castor-plugin.zip [ 16413 ]
Hide
Permalink
Brett Porter added a comment - 24/Aug/05 10:05 PM

Thanks John - please work with someone who is online at the time to help you get into your account to check this in (trygvis and dblevins can both help I think)

Show
Brett Porter added a comment - 24/Aug/05 10:05 PM Thanks John - please work with someone who is online at the time to help you get into your account to check this in (trygvis and dblevins can both help I think)
Brett Porter made changes - 15/Sep/05 3:30 AM
Component/s sandbox [ 11747 ]
Component/s castor [ 11818 ]
Brett Porter made changes - 15/Sep/05 3:31 AM
Status Open [ 1 ] Closed [ 6 ]
Assignee John Tolentino [ jtolentino ]
Resolution Fixed [ 1 ]
Brett Porter made changes - 27/Feb/06 9:47 PM
Workflow Maven [ 38788 ] Maven New [ 50020 ]
Brett Porter made changes - 28/Mar/06 9:41 PM
Project Mojo [ 11062 ] Maven 2.x Castor Plugin [ 11191 ]
Key MOJO-6 MCASTOR-7
Component/s castor [ 11818 ]

People

  • Assignee:
    John Tolentino
    Reporter:
    John Tolentino
Vote (0)
Watch (0)

Dates

  • Created:
    18/Aug/05 5:48 PM
    Updated:
    28/Mar/06 9:41 PM
    Resolved:
    15/Sep/05 3:31 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.