• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] JavaEOGenerator generates no files...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] JavaEOGenerator generates no files...


  • Subject: Re: [SOLVED] JavaEOGenerator generates no files...
  • From: Gaastra Dennis - WO Lists <email@hidden>
  • Date: Mon, 14 Jan 2008 16:08:52 -0800

Solved,

Thanks to Art's updated version and Jake's + other's command line help. :-)

With Kind Regards,

Dennis Gaastra,

On 14-Jan-08, at 3:05 PM, Jake MacMullin wrote:

Dennis,

I had the same problem. I downloaded the JavaEOGenerator from the Apple web site (http://developer.apple.com/samplecode/ JavaEOGenerator/index.html).

It compiled and ran fine - but failed to produce any files. Stepping through the source code in the debugger - I figured out what the problem was.

Despite the documentation stating (emphasis mine):

"-javatemplate: Used to specify alternate template files to use. File can be an absolute path, a relative path, or a filename found in one of the search path directories. If not specified, the default templates are used."

"-subclassjavatemplate: Used to specify alternate template files to use. File can be an absolute path, a relative path, or a filename found in one of the search path directories. If not specified, the default templates are used."

It seems that unless you specify a java and subclass template then JavaEOGenerator is unable to create files. So, the following command line arguments work for me:
-model /path/to/MODEL.eomodeld
-destination /path/to/destination/
-javatemplate /path/to/JavaEOGenerator/Templates/ JavaSourceEOF52.eotemplate
-subclassjavatemplate /path/to/JavaEOGenerator/Templates/ JavaSubclassSourceEOF5.eotemplate


If you don't specify the template files then JavaEOGenerator will silently fail.

Hope this helps,

Jake


On 15/01/2008, at 7:12 AM, Gaastra Dennis - WO Lists wrote:

Hi Bogdan et al,

No modifications; everything stock. Even tried to download it again. Still no files... :-(

Why has Pierre not answered this???

Greetings,

Dennis.


On 14-Jan-08, at 1:46 AM, Bogdan Zlatanov wrote:

Gaastra Dennis - WO Lists wrote:
Dear List,

Running JavaEOGenerator seems to find the model correctly, but produces no files (although it claims it does)

../JavaEOGenerator.woa/JavaEOGenerator -model /Users/sjobs/ Documents/JavaEOGenerator/bizDAV_Stuff/bizDAV.eomodeld/ -verbose -destination /Users/sjobs/Documents/JavaEOGenerator/bizDAV_Stuff -subclassDestination /Users/sjobs/Documents/JavaEOGenerator/ bizDAV_Stuff -templatedir /Users/sjobs/Desktop/JavaEOGenerator/ Templates - subclassJavaTemplate JavaSubclassSourceEOF5.eotemplate -packagedirs -force

------
Generating for entity: 'AuditLog'
URL for super class: 'file:/Users/sjobs/Documents/ JavaEOGenerator/bizDAV_Stuff/base/_AuditLog.java'
Generating super class file: '/Users/sjobs/Documents/ JavaEOGenerator/bizDAV_Stuff/base/_AuditLog.java'
Generated file for class:
''
URL for sub class: 'file:/Users/sjobs/Documents/JavaEOGenerator/ bizDAV_Stuff/.AuditLog.java'
Generating sub class file: '/Users/sjobs/Documents/ JavaEOGenerator/bizDAV_Stuff/.AuditLog.java'
Generated file for sub class:
''
Finished generating for entity: 'AuditLog'


....


----

but these files were not found [ls -la]. Are we missing something?

In my humble experience, this happens if one of your template files is messed up, i.e. can't be parsed properly. Have you made any modifications to those files?

   Regards,
     Bogdan Zlatanov


With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40tuparev.com


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >JavaEOGenerator generates no files... (From: Gaastra Dennis - WO Lists <email@hidden>)
 >Re: JavaEOGenerator generates no files... (From: Bogdan Zlatanov <email@hidden>)
 >Re: JavaEOGenerator generates no files... (From: Gaastra Dennis - WO Lists <email@hidden>)
 >Re: JavaEOGenerator generates no files... (From: Jake MacMullin <email@hidden>)

  • Prev by Date: Re: Help on running without DirectConnect
  • Next by Date: Re: Help on running without DirectConnect
  • Previous by thread: Re: JavaEOGenerator generates no files...
  • Next by thread: Re: JavaEOGenerator generates no files...
  • Index(es):
    • Date
    • Thread