Hi

I finally decided to take a long hard look at NewGenerateMapBuilderTask.

I had to make a hand full of changes before I could get it to create
compilable code.  A summary of the changes are:

*  Add the patch given by Daniel (Fix the compiler errors)
*  Add the patch I had given earlier (Generate the correct types for
business object classes)
*  Let the getPackageAsPath add a '/' at the end of the path that gets
returned.
*  Add the following lines to doBuild (when generating MapBuilder classes)
String string = new String ("");
Integer integer = new Integer (0);
Date date = new Date();
    // I got this from the existing classes in turbine
*  Added some imports to the generated MapBuilder classes
*  Added some imports to the generated Peer classes

The patch is a bit long and my mail client tends to do some nasty wrapping.
You can get the file from
www.opticode.co.za/downloads/NewGenerateMapBuilderTask.java
I'd appreciate it if somebody can take a look at it and if everything looks
ok commit it to CVS.

I want to propose that the MapBuilder files that we add an option that the
MapBuilder files that gets generated can either inherit from a subclass (as
it is presently) or that we add "implements MapBuilder" and a default
implementation of the MapBuilder methods if a Superclass is not specified.
Any thoughts on this?  I'm willing to do the implementation if everyone
wants to go along with it.

~ Leon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to