db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-621) Add javax.jdo.JDOEnhancerMain to call the enhancer via standard API
Date Sat, 01 Aug 2009 00:14:14 GMT

     [ https://issues.apache.org/jira/browse/JDO-621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Craig Russell updated JDO-621:
------------------------------

    Attachment: jdo-621.patch

Please review this patch.

Most functionality of Enhancer is implemented and tested using a mock JDOEnhancer.

Still missing: classpath processing

Some notes:

Usage is always printed to stderr, not stdout.

Multiple persistence unit names are accepted and passed to JDOEnhancer, one at a time.

Multiple jar file names are accepted and passed to JDOEnhancer, one at a time.

Only one classpath entry is expected, but currently no error checking on the second one

Only one output directory is expected, but currently no error checking on the second one

Testing is done by adding test/resources to the test class path but these artifacts aren't
put into the api2 jar file.

Comments?

> Add javax.jdo.JDOEnhancerMain to call the enhancer via standard API
> -------------------------------------------------------------------
>
>                 Key: JDO-621
>                 URL: https://issues.apache.org/jira/browse/JDO-621
>             Project: JDO
>          Issue Type: New Feature
>          Components: api2
>    Affects Versions: JDO 2 maintenance release 2
>            Reporter: Craig Russell
>            Assignee: Craig Russell
>             Fix For: JDO 2 maintenance release 3
>
>         Attachments: jdo-621.patch, jdo-621.patch
>
>
> The proposed new class will use the standard enhancer API to enhance classes. The command
line parameters would be similar to the original proposal of JDO-591, with changes as needed
to use the new class in the TCK.
> java -cp classpath {enhancer-class} [options] [jdo-files] [class-files] 
>     where options can be 
>         -persistenceUnit persistence-unit-name : Name of a "persistence-unit" to enhance
the classes for 
>         -d target-dir-name : Write the enhanced classes to the specified directory 
>         -checkonly : Just check the classes for enhancement status 
>         -v : verbose output 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message