Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipse.org-architecture-council] [Bug 249959] [discussion] How to treat copyright headers for checked-in generated sources?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=249959  
Product/Component: Community / Architecture Council




--- Comment #6 from Dave Carver <d_a_carver@xxxxxxxxx>  2008-10-07 11:44:30 -0400 ---
There are a couple of options.

1. Try adding to the top of your schema files the copyright information as an
xsd:annotation/xsd:documentation element.  This should include that information
in your generated source files.

2.  If that doesn't work, then you might be able to use the XJC code injector
plugin that that adds java code during the generation process.

3. Write a customized XJC plugin that handles the copyright header generation.

JAXB provides a plugin interface that allows additional functionality to be
added during code generation from the XML Schemas.   One could write an XJC
plugin that added the appropriate copyright header to the files as they are
being generated.

https://jaxb.dev.java.net/plugin.html


-- 
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Back to the top