| Difficulty getting a code generator to run automatically [message #560233] |
Tue, 21 September 2010 11:56  |
Eclipse User |
|
|
|
We are using JiBX to generate XML and XSD Schemas. JiBX provides an eclipse plugin that uses custom.xml, binding.xml and the java code to generate some class files for producing the XML. This all works well.
One of my developers has created a generator that processes annotations in the java class files for generating the custom.xml and binding.xml files. This again works fairly well if we run the generator manually.
But I would like to run this generator automatically as part of the eclipse build before the JiBX plugin runs it's build step. It seemed to me that the way to do this was to create a Builder step within the project. But it would seem that the Builders will only run external programs or ant tasks and there is no way of running something that is within the workspace.
The best I could do was an ant script running the generator. But I could not get the classpath to work. I was able to access the class files in the project that the generator is in. But this became more complex when I hit classes in other project dependancies. Third party JAR dependancies where then impossible, especially given the fact that we are managing these dependancies using IvyDE.
Am I missing something here, or are we going to have to continue with remembering to do the manual code generation?
|
|
|
|
Powered by
FUDForum. Page generated in 0.10667 seconds