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
At 03:12 PM 08/10/2003 +0200, Pierre Bernard wrote:
>
>quite some time ago I send a message to this list discussing the
limitation of WOGen I had encountered. You might find it in the archives by
searching for my email addresses: pierre.bernar..cl.lu, I_love_my@mac.com
>
>I ended up staying with good trusty EOGenerator which actually is pretty
easy to call from within the Ant build file:
>
> <echo>Generating eos...</echo>
> <property name="eoCommonArgs"
> value="-destination src -templatedir eotemplates -force -packagedirs
-model ... "
> />
> />
> <property name="eoImplArgs"
> value="-impl -prefix Impl -javaTemplate EnterpriseImpl.eotemplate ...
${eoCommonArgs}"
> />
> <property name="eoPlainEntities"
> value="..."
> />
> <exec dir="." executable="eogenerator"
> os="Windows 2000" failonerror="true"
> vmlauncher="false">
> <arg line="${eoImplArgs} ${eoPlainEntities}" />
> </exec>
>
>Pierre
>
>--
>Got a hang for movies?
>http://homepage.mac.com/I_love_my/movies.html
>
>-----Original Message-----
>From: Bill Michell [mailto:bill.michel..bc.co.uk]
>Sent: Wednesday, October 08, 2003 2:56 PM
>To: woproject-de..bjectstyle.org
>Subject: WOGen task
>
>
>I'm experimenting with using WOGen to build my EO classes.
>
>I'm trying to model inheritance through the single table model (keep
things simple). However, the classes generated by WOGen do not seem to
model the inheritance properly; my sub-classes all say "extends
EOGenericRecord" rather than "extends [parent custom class]"
>
>Am I doing something stupid? Or can WOGen not respect the parent key in
the .plist file for the EO yet?
>
>--
>Bill Michell
--Chuck Hill chil..lobal-village.net Global Village Consulting Inc. http://www.global-village.net
This archive was generated by hypermail 2.0.0 : Wed Oct 08 2003 - 11:46:31 EDT