Re: EOGenerator not generating files

Johann Werner <[email protected]> Sat, 20 Aug 2011 19:40:57 +0200
Newsgroups gmane.comp.web.webobjects.woproject.devel
Message-ID <[email protected]>
--Apple-Mail-1-547408571
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hi Cord,

Am 20.08.2011 um 18:13 schrieb Cord Sengbusch:

> Hi All -
>=20
> I am new to eclipse and wolips. I am trying to create my java classes =
using eogenerator, but nothing happens after I choose EOGenerate after =
ctrl-clicking on my .eogen file. The only thing I see happen is some =
movement on the bottom right of eclipse.
>=20
> Here is my .eogen file:
>  -destination /Users/cseng/workspace/SKA/Sources -extension java -java =
-javaTemplate _Entity.java -model Resources/SKA.eomodeld -packagedirs =
-subclassDestination /Users/cseng/workspace/SKA/Sources =
-subclassJavaTemplate Entity.java -templatedir =
/Developer/Applications/EOGeneratorTemplates -verbose

In my eogen files I don't have absolute paths for the Source folder and =
the eogen editor states that these have to be project-relative. So =
changing '/Users/cseng/workspace/SKA/Sources' to simple 'Sources' should =
resolve your problem.
You should also check if your entities in your model have a fully =
qualified class name, e.g. if you have an entity Person then class name =
should be something like com.mysuperintelligentidentifier.eo.Person. =
This will cause the class files to be generated in the correct package.

jw

>=20
> I am using eclipse Indigo.
>=20
> My Ecliplse preferences has the follwoing for EOGenerator:
> EOGenerator Executable Path: blank
> EOGenerator Template Folder: =
/Developer/Applications/EOGeneratorTemplates
> EOGenerator Java Template: _Entity.java
> EOGenerator Subclass Java Template: Entity.java
> Use Java 1.4 Templates (Velocity only): Unchecked
>=20
> Thanks for the help.
>=20
> Cord


--Apple-Mail-1-547408571
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi =
Cord,<div><br></div><div>Am 20.08.2011 um 18:13 schrieb Cord =
Sengbusch:</div><div><div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite">Hi All =
-<div><br></div><div>I am new to eclipse and wolips. I am trying to =
create my java classes using eogenerator, but nothing happens after I =
choose EOGenerate after ctrl-clicking on my .eogen file. The only thing =
I see happen is some movement on the bottom right of eclipse.</div>
<div><br></div><div>Here is my .eogen file:</div><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; =
">&nbsp;-destination /Users/<span style=3D"text-decoration: =
underline">cseng</span>/workspace/SKA/Sources -extension java -java =
-javaTemplate _Entity.java -model Resources/SKA.eomodeld -<span =
style=3D"text-decoration: underline">packagedirs</span> =
-subclassDestination /Users/<span style=3D"text-decoration: =
underline">cseng</span>/workspace/SKA/Sources -subclassJavaTemplate =
Entity.java -<span style=3D"text-decoration: =
underline">templatedir</span> =
/Developer/Applications/EOGeneratorTemplates =
-verbose</div></div></blockquote><div><br></div><div>In my eogen files I =
don't have absolute paths for the Source folder and the eogen editor =
states that these have to be project-relative. So changing =
'/Users/cseng/workspace/SKA/Sources' to simple 'Sources' should resolve =
your problem.</div><div>You should also check if your entities in your =
model have a fully qualified class name, e.g. if you have an entity =
Person then class name should be something like =
com.mysuperintelligentidentifier.eo.Person. This will cause the class =
files to be generated in the correct =
package.</div><div><br></div><div>jw</div><br><blockquote =
type=3D"cite"><div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; "><br></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; ">I am using eclipse Indigo.</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
<br></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; ">My Ecliplse preferences has the follwoing for =
EOGenerator:</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; ">EOGenerator Executable Path: blank</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; =
">EOGenerator Template Folder: =
/Developer/Applications/EOGeneratorTemplates</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; =
">EOGenerator Java Template: _Entity.java</div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 11px/normal Monaco; ">EOGenerator Subclass Java =
Template: Entity.java</div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; ">Use Java 1.4 Templates (Velocity only): =
Unchecked</div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; "><br></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 11px/normal Monaco; ">Thanks for the help.</div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
<br></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; font: normal normal normal =
11px/normal Monaco; ">Cord</div></div>
</blockquote></div><br></div></body></html>=

--Apple-Mail-1-547408571--