RE: WOGen task

From: Bill Michell (bill.michel..bc.co.uk)
Date: Wed Oct 08 2003 - 12:30:56 EDT

  • Next message: Stas Pietrucha: "trouble using debugger with 5.1 & 1.4.1"

    Best advice I've had all day - thanks!

    From: Chuck Hill [mailto:chil..
    global-village.net]
    Sent: Wednesday, October 08, 2003 4:49 PM
    To: Pierre Bernard; Bill Michell; woproject-de..bjectstyle.org
    Subject: RE: WOGen task

    Hi,

    I agree with Pierre, use EOGenerator. In case anyone is interested, here is an alternate Ant target for EOGenerator:

              <!-- Generate EOs -->
             <target name="generate.eos" depends="setProps">
                <exec executable="${eogenerator.executable}">
                              <arg value="-model" />
                              <arg path="VirtualTables.eomodeld" />
                              <arg value="-refmodel" />
                              <arg path="../GVCEOPrototypes/GVCEOPrototypes.eomodeld" />
                              <arg value="-destination" />
                              <arg path="GeneratedEOs/net/global_village/virtualtables" />
                              <arg value="-subclassDestination" />
                              <arg path="src/net/global_village/virtualtables" />
                              
                              <!-- The default values below are taken from wobuild.properties in your home/library directory -->
                              <!-- They can be overridden here or in the build.properties file for this project. -->
                              <arg value="-templatedir" />
                              <arg path="${eogenerator.template.dir}" />
                              <arg value="-javaTemplate" />
                              <arg value="${eogenerator.baseClassTemplate}" />
                              <arg value="-subclassJavaTemplate" />
                              <arg value="${eogenerator.subClassTemplate}" />
                              <arg value="-define-copyrightYear" />
                              <arg value="${eogenerator.copyrightYear}" />
                              <arg value="-define-copyrightBy" />
                              <arg value="${eogenerator.copyrightBy}" />
                              <arg value="-verbose" />
                              <arg value="-java" />
                              <arg value="-define-EOSuperClass" />
                              <arg value="${eogenerator.superclass}" />
                    </exec>
            </target>

    Ah, isn't Ant much nicer than make? :-) I also have an Ant task making this even more concise. I hope to be donating this to WOProject RSN.

    Chuck

    BBCi at http://www.bbc.co.uk/

    This e-mail (and any attachments) is confidential and may contain
    personal views which are not the views of the BBC unless specifically
    stated.
    If you have received it in error, please delete it from your system.
    Do not use, copy or disclose the information in any way nor act in
    reliance on it and notify the sender immediately. Please note that the
    BBC monitors e-mails sent or received.
    Further communication will signify your consent to this.



    This archive was generated by hypermail 2.0.0 : Wed Oct 08 2003 - 12:31:02 EDT