[71cat] JAXB Bindings Refresh as part of clean & build

  • From: "peter belbin" < >
  • To: < >
  • Subject: [71cat] JAXB Bindings Refresh as part of clean & build
  • Date: Fri, 24 Feb 2012 11:48:07 -0600
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates as permitted sender) smtp.mail= ; dkim=pass header.i=

When I have a project that uses external schema files, or, those files need to be editable using some other tooling, I tend to create a project, add a folder ‘schemas’ and put the schemas in there.


I then create jaxb bindings, to allow me to create a project .jar product that is then available for use by multiple other projects.


Ie: encapsulate the jaxb generated code into a jar producing project.


What I notice is that if I do a change to the schemas/* files, that, a clean & build does not notice that the source files have changed, even though the ide remembers where the files came from (the ide, right click on the schema file under the jaxb bindings, and hit the ‘refresh’ option – it knows where they came from).


Should not the build script, since it knows the files came from a local directory (ie: within the project) detect that the source files have changed, and automagically do the refresh?


As it is, I have to do the refresh manually, and, I may forget to do it.  Also, if the files are checked into cvs, I manually have to keep the files up to date since I may not have noticed whether the files got updated.


Now, I understand that there may be situations where the current behavior is preferred, because you could want to work upon a set of schema changes before actually having the schema get used.


If there was a configurable value on the project (or, perhaps, per binding) to indicate whether it should automatically perform updates based on the source being more recent than what it has in it’s cache, I imagine this would be the best scenario possible, so that users can control this behavior.


Suggestions / comments?





[71cat] JAXB Bindings Refresh as part of clean & build

peter belbin 02/24/2012

[71cat] Re: JAXB Bindings Refresh as part of clean & build

Petr Jiricka 02/27/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm