Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315818 - JAXB Class Generation Wizard: Might be nice to have ability to create JAR file
Summary: JAXB Class Generation Wizard: Might be nice to have ability to create JAR file
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 14:43 EDT by Andrew Fernandez CLA
Modified: 2010-09-29 12:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fernandez CLA 2010-06-04 14:43:54 EDT
Build Identifier: 

With the JAXB Class Generation wizard it would be nice to have a checkbox in the wizard where the user could have the ability to create a JAR file under WEB-INF/lib instead of source files being created under src.

This might be easier for some users who don't want to fuss with new packages created under src.

As a comparison, the soon to be deprecated OEPE JAXB wizard places all generated class files and (optional source files) in a JAR file under lib.

Reproducible: Always
Comment 1 Shaun Smith CLA 2010-07-19 13:48:14 EDT
I would think a more Eclipse-consistent approach would be to generate a "JAXB Utility Jar Project" that contains just the generated classes.  Part of the generation of such a project could prompt to either add this project to an EAR or establish the necessary dependencies so that the project is jar'ed and packaged into an existing WAR.

This project-oriented approach produces the same end result as what you're looking for, a jar in the web-inf/lib of the war, but also supports customization or augmentation of the generated classes and JAXB binding.  This approach has no more fuss than the straight to jar approach but provides significant opportunities for advanced users and Dali adopters.