Re: EOGenerator not generating files
Johann Werner <[email protected]> Tue, 23 Aug 2011 08:45:36 +0200
| Newsgroups | gmane.comp.web.webobjects.woproject.devel |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-1-767287654 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Glad to hear that it works for you now. Am 21.08.2011 um 20:39 schrieb Cord Sengbusch: > Thanks Johann - >=20 > Both your ideas allowed the classes to be generated. >=20 > I was following the confluence tutorials and the images there seemed = to have the full qualifier. Can you point me to the confluence page that was misleading so it can be = fixed? >=20 > Also in Entity Modeler my package for all objects was = com.wonder.eo.EOGenericRecord. >=20 > Once I changed both these things (as you suggested), eogenerator = worked. >=20 > Thanks for the help. >=20 > Cord >=20 > On Sat, Aug 20, 2011 at 1:40 PM, Johann Werner <[email protected]> wrote: > Hi Cord, >=20 > Am 20.08.2011 um 18:13 schrieb Cord Sengbusch: >=20 >> 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 >=20 > 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. >=20 > jw >=20 >>=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 >=20 >=20 --Apple-Mail-1-767287654 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Glad to hear that it works for you now.</div><br><div><div>Am 21.08.2011 um 20:39 schrieb Cord Sengbusch:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks Johann -<div><br></div><div>Both your ideas allowed the classes to be generated.</div><div><br></div><div>I was following the confluence tutorials and the images there seemed to have the full qualifier.</div></blockquote><div><br></div><div>Can you point me to the confluence page that was misleading so it can be fixed?</div><br><blockquote type="cite"><div><br> </div><div>Also in Entity Modeler my package for all objects was com.wonder.eo.EOGenericRecord.</div><div><br></div><div>Once I changed both these things (as you suggested), eogenerator worked.</div><div><br></div><div>Thanks for the help.</div> <div><br></div><div>Cord</div><div><br><div class="gmail_quote">On Sat, Aug 20, 2011 at 1:40 PM, Johann Werner <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div style="word-wrap:break-word">Hi Cord,<div><br></div><div>Am 20.08.2011 um 18:13 schrieb Cord Sengbusch:</div><div><div><div class="im"><br><blockquote type="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="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> -destination /Users/<span style="text-decoration:underline">cseng</span>/workspace/SKA/Sources -extension java -java -javaTemplate _Entity.java -model Resources/SKA.eomodeld -<span style="text-decoration:underline">packagedirs</span> -subclassDestination /Users/<span style="text-decoration:underline">cseng</span>/workspace/SKA/Sources -subclassJavaTemplate Entity.java -<span style="text-decoration:underline">templatedir</span> /Developer/Applications/EOGeneratorTemplates -verbose</div> </div></blockquote><div><br></div></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><font color="#888888"><div>jw</div></font><div class="im"><br><blockquote type="cite"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> I am using eclipse Indigo.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">My Ecliplse preferences has the follwoing for EOGenerator:</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> EOGenerator Executable Path: blank</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">EOGenerator Template Folder: /Developer/Applications/EOGeneratorTemplates</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> EOGenerator Java Template: _Entity.java</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">EOGenerator Subclass Java Template: Entity.java</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> Use Java 1.4 Templates (Velocity only): Unchecked</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> Thanks for the help.</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Cord</div></div> </blockquote></div></div><br></div></div></blockquote></div><br></div> </blockquote></div><br></body></html> --Apple-Mail-1-767287654--