Re: Converting Apps From Xcode > Eclipse [Problems Solved]
Re: Converting Apps From Xcode > Eclipse [Problems Solved]
- Subject: Re: Converting Apps From Xcode > Eclipse [Problems Solved]
- From: Mike Schrag <email@hidden>
- Date: Thu, 1 Mar 2007 12:43:34 -0500
If you're in a helping mood and have some free time, can you try
again the first way and look inside your project's "build" folder and
see if 1) the eomodel folder is there and 2) are the entity plists
(et al) inside of it? If it's broken, try then deleting the build
folder entirely and have wolips do a clean build and see if that
fixes it?
On Mar 1, 2007, at 12:10 PM, Fred Shurtleff wrote:
Hi All,
Just want to report that I solved my problem (could not find an
Object Store for entities in a model that was copied from an Xcode
app), and what the key issues are.
This is basic, but the key is to copy the model file (.eomodeld)
into your Eclipse project folder FIRST and before any .java files
(that reference their entities) are added. Then Import the project
(or use Clean... if copied while project is already loaded), and
open the model with Entity Modeler.
Now add the remaining .java, .wo, .api files, Run your WO app, and
you're done.
I tried a number of times copying Xcode files en mass into Eclipse;
saw there were errors(unresolved types pointing to entities); used
Clean... that resolved the errors; but the app always failed
because the model was not loaded (as reported by a
EOModelGroup.defaultGroup() statement I put into main). So the
lesson is make sure your model file is present/recognized in
Eclipse before adding any external java files.
If this sounds oh so trivial, pardon me - I am an Eclipse/
WebObjects newbie.
Thanks all for your help!
Daniele Corti wrote:
2007/3/1, Chuck Hill <email@hidden
<mailto:email@hidden>>:
On Feb 28, 2007, at 4:15 PM, Fred Shurtleff wrote:
> Hi All,
>
> Does anyone have experience converting WebObject
applications from
> Xcode to Eclipse, or any caveats in making this conversion?
Yes. The only caveat I can think of is that you will kick
yourself
for not having done it sooner. :-P
> I have done a few conversions with varying degrees of
success. The
> way I look at this is basically this involves copying the
source
> files(.wo, .api, .java, and .eomodeld) in Xcode to an Eclipse
> project structure, then compile/run, and the app should just
run.
Create an Eclipse project, copy in the source, adjust the
contents of
build.xml, woproject/* and it should just run.
> However I am finding that sometimes the model file is not
> recognized (in which case it reports > An 'object store' for
the
> entity "User" could not be found. Verify that the entity is
defined
> in an EOModel, and that the model is installed properly.). Also
> Eclipse will sometimes report an error >
> 'my_project_name.framework' not found.
Sounds like a refresh issue with the new Eclipse project. Try
restarting Eclipse after copying in the resources.
Or simply select Project->Clean.. and the clean yor project! This
problem is caused because when you make changes on your files
(EOModel, Woo, Java), OUTSIDE eclipse ( i.e. with EOModeler)
Eclipse doesn't see the changes, so you must rebuild the app, to
make changes works!
> Am I misunderstanding something here about this conversion
process?
> Or is there any documentation pertaining to importing/
converting
> Xcode apps to Eclipse?
Beyond the Tutorials you mean?
http://wiki.objectstyle.org/confluence/display/WOL/Tutorials
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ( email@hidden
<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
40gmail.com
40gmail.com>
This email sent to email@hidden <mailto:email@hidden>
--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden <mailto: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:
40mdimension.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