Re: [OJB-developers] Ojbgen code generator
Brought to you by:
thma
From: Brian D. <bde...@in...> - 2002-05-31 15:47:12
|
Hi Hoang/Thomas, A useful alternative that I have used for code generation is to use an XSLT style sheet to generate the interface and data object java code. Using the "Redirect" extension tag in Xalan, which can be used to redirect output to many different files, I do a transformation directly on the repository.xml into java source files. Additionally, because its a simple XSLT transformation, the code generation can be added as a "style" task in an ant build file, so that all classes are generated and compiled at build time. There's nothing else to code other than the stylesheet. I can send along mine as an example if you are interested. -Brian -- Brian DeVries Sr. Software Engineer mailto:bde...@in... http://www.intraware.com Voice: 925.253.6516 Fax: 925.253.6785 -------------------------------------------------------- Intraware... The leading provider of Electronic Software Delivery and Management (ESDM) Solutions |