Ehmm,
I am a little bit embarressed but I did only modify the index.eomodeld
file (we cannot use EOModeler anymore) and not the entity files. Now
everything works. In addition I had an old version of eogenerator and I
now upgraded to the newest one.
But now I have a problem with the ant task (thanks to Garry Watkins for
this):
[exec] BUILD FAILED: file:eogenerate.xml:7: Execute failed:
java.io.IOException: CreateProcess:
..\..\bin\eogenerator\eogenerator.exe -model ... error=2
But if I paste the expression to the command line everything works fine.
If I run Ant (either from the command line or from inside Eclipse) it
fails. Any suggestions? I use Ant 1.6b2.
Cheers
Alex
Here is my external eogenerate.xml file which I call:
<?xml version="1.0"?>
<project name="eogenerate" default="eogenerate">
<!-- Generate EOs -->
<target name="eogenerate" description="Call eogenerator on Windows and
create the java classes for the model">
<exec executable="${eogenerator.executable}">
<arg value="-model" />
<arg path="${eomodel}" />
<arg value="-destination" />
<arg path="${dest}" />
<arg value="-refmodel" />
<arg path="${refmodel}" />
<!-- 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="-refmodel" />
<arg path="${eogenerator.refmodel}" />
<arg value="-templatedir" />
<arg path="${eogenerator.template.dir}" />
<arg value="-javaTemplate" />
<arg value="${eogenerator.baseClassTemplate}" />
<arg value="-packagedirs" />
<arg value="-java" />
</exec>
</target>
</project>
This is the task:
<target name="generate.eos.database" depends="setProps">
<ant antfile="${eogenerate.xml.path}" dir="." inheritall="false">
<property name="refmodel" value="eomodel/refmodel.eomodeld" />
<property name="eomodel" value="eomodel/model.eomodeld" />
<property name="dest" value="src" />
</ant>
</target>
Geoff Hopson schrieb:
> Have you set the full package class definition in the model? EG set the
> class name to com.myorg.myframework.myclass
>
> I run it so:
>
> eogenerator -java -model myModel.eomodeld -packagedires -destination ../src
>
> Works fine for me...
>
> HTH,
> Geoff
>
>
> On Thursday, November 6, 2003, at 12:30 pm, Alexander Schneider wrote:
>
>> Hi,
>>
>> since many of you will use EOGenerator I am wondering how I use it to
>> generate package structures.
>>
>> I tried fiddling with the eomodel and the -packagedirs switch but I
>> cannot get it to create the package statement at the start of the class.
>>
>> Can anyone shed some light on that please?
>>
>> Cheers
>> Alexander
>>
>>
> --
> Geoff Hopson
> Objectology Ltd.
> http://www.objectology.co.uk/
>
-- ---------------------------------------------------------- Alexander Schneider, alexander.schneide..it.fraunhofer.de tel +49 2241 14 2869 fax +49 2241 14 2146Fraunhofer-Institut für Angewandte Informationstechnik FIT Schloss Birlinghoven . D-53754 Sankt Augustin ----------------------------------------------------------
This archive was generated by hypermail 2.0.0 : Thu Nov 06 2003 - 10:02:58 EST