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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/bzlat%40tuparev.com

This email sent to [EMAIL PROTECTED]



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jmacmullin%40mac.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to