Re: HELP ! WOBuilder not seeing Java files in Frameworks ( files now included )
Re: HELP ! WOBuilder not seeing Java files in Frameworks ( files now included )
- Subject: Re: HELP ! WOBuilder not seeing Java files in Frameworks ( files now included )
- From: Owen McKerrow <email@hidden>
- Date: Mon, 15 May 2006 11:22:38 +1000
Hi All,
Last Friday I noticed that the extra methods I had added to my java
classes for my entities where not being show in WOBuilders class
browser ( turns out its not just the extra methods but any Java file,
more on that in a moment ). What followed was a full day of testing
and not making much headway.
So Im hoping someone out there can help, cause at the moment my only
way to Dev with WOBuilder involves a lot of copy and pasting and
that's painful after awhile :)
So onto the details :
OS X 10.4.6
Java 1.4.2_09
xCode 2.2.1
WebObjects 5.3.1 ( I believe thats what gets installed with xCode
2.2.1 )
Tested for a full day across 5 different machines ( 4 in here at work
and on a contractors box as well ).
It first appeared that WOBuilder could not see any extra methods I
added to my entities classes. It would show the attributes which were
actually in the Entity but nothing else. After further testing I
discovered it was in fact not seeing any Java files and the reason it
was picking up the "methods" from the Entity classes was because it
was getting them straight from the model file itself, not the java file.
To make matters worse some of my Frameworks work fine, others do not.
I have made a number of test frameworks while trying to solve this
issue and none of them work with WOBuilder.
OK things that I have tried :
I start xCode before WOBuilder.
I have the framework project open in xCode.
I have built the framework both in Dev and Deployment ( deployment
being in /Library/Frameworks ).
I have tried adding the files to packages and including the full name
in the Model file ( e.g com.test.Movie )
I have cleaned the projects and frameworks.
I have rebuilt the code sense indexes for both the framework and the
project.
I have tried with the advanced CodeSense indexing turned on ( as per /
Developer/Extras/Xcode Index Templates ).
I have turned off the advanced CodeSense indexing ( mentioned above ).
Nothing seemed to help.
I then made a new test project ( attached ) with a new test model
file ( points to the standard OBMovie DB ). Once again I could see
the attributes of the entity but not the extra methods I added. I
then removed the model file ( keeping the Java file however ),
cleaned and rebuilt both the framework and the project. Suddenly I
could no longer see the attributes in WOBuilder. I then added the
model file back in, cleaned and rebuilt and bang they came back, thus
my conclusion its picking the attributes up from the model file not
the java file, cause the java file was there the whole time.
OK the attached zip file contains a Framework ( ExampleFM ) and a
project ( ExampleProj ) which uses the framework.
The framework has a EOModel file that points to OBMovies, with only 1
table modeled ( Movie ), the matching Java class ( Movie.java ) which
has an extra method titleAndRevenue(). It also contains Square.java
which has a couple of functions it it, but isn't an actual entity.
The project itself has an extra class ( Circle.java ). Then in
Main.wo I have an instance of a Circle, a Square and a Movie. I can
see all the attributes of Circle ( correct behaviour ). I can see the
attributes represented in the entity of Movie but not my extra
functions ( incorrect behavior ) and it doesn't recognize Square at
all ( incorrect behavior ).
Now I realize I should probably file this as a bug report but I don't
understand why :
a) Some of my other frameworks work fine
b) Why it suddenly started happening, i.e. Thursday it was working/
Friday it was not. We recently "upgraded" to xCode 2.2.1 and WO 5.3
( around 3 weeks ago ) and if it had happened because of that I think
(??) I would have noticed it before this. And if its a common thing
Im sure I would have heard about it on this list.
Anyways any advise/suggestions would be most appreciated. And if you
have a moment can you please test the attached Framework and Project
to see if you have similar behavior.
Thanks for your time
Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - -
"I like the way this project has somehow, against all common sense,
got itself made."
- Peter Jackson, "The Lord of The Rings"
Attachment:
Archive.zip
Description: Zip archive
_______________________________________________
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