Re: Jar merging in a WebObjects Framework project?
Re: Jar merging in a WebObjects Framework project?
- Subject: Re: Jar merging in a WebObjects Framework project?
- From: Kaelin Colclasure <email@hidden>
- Date: Mon, 15 Mar 2004 15:43:08 -0800
On Mar 15, 2004, at 2:47 PM, Jonathan Rochkind wrote:
> Have you yet consulted the information at:
>
> http://developer.apple.com/documentation/WebObjects/
> PB_for_WO_Developers/
>
> In the "Third party JAR files" section?
Thank you Jonathan! Indeed I had not. I did scrupulously search through
the Xcode release notes and search the obvious mailing list archives,
but this document had eluded my attention. (In retrospect, there were
clues there: the Xcode notes point out that all Java targets are legacy
Project Builder targets using Jam files, and that they can't be updated
to "native" Xcode projects yet.)
> It was written for ProjectBuilder, which has now been replaced by
> XCode. XCode is really just the new version of ProjectBuilder. It's
> possible that some of this stuff has changed in XCode, which I do not
> have yet, but the instructions there work fine for me to get third
> party JAR files merged at build time, in ProjectBuilder. It's
> possible it's gotten buggy in XCode.
>
> The instructions there seem to suggest you've got to add it to the
> 'main' target AND the Application Server target.
For the edification of future archive searchers, I'll reproduce the
relevant bullet points here:
No element of any project should be associated explicitly with the
projects aggregate target, except third-party JAR files.
JAR files that are individually added to a project (they are not
in a framework) must be associated with the aggregate target and the
Application Server target. If the JAR file is used in the client-side
application of a Java Client application, it must also be associated
with the Web Server target.
-- Kaelin
> Apologies if you've already looked there.
>
> --Jonathan
>
> At 2:30 PM -0800 3/15/04, Kaelin Colclasure wrote:
>> On Mar 15, 2004, at 9:14 AM, Kaelin Colclasure wrote:
>>
>>> Greetings,
>>>
>>> I am experimenting with moving a WebObjects framework project from
>>> Eclipse / WOLips over to Xcode. This framework includes a handful of
>>> externally-produced jar files, and it was my intent to use the Xcode
>>> jar merge feature to have the contents of these jar files be
>>> incorporated into the framework jar file; however, I have not been
>>> able to make this work.
>>>
>>> I have added the relevant jar files to my Xcode project and included
>>> them in the Application Server target. I have also checked the Merge
>>> checkbox under the Frameworks & Libraries settings of the target.
>>> When I do a build, I see a message saying that the jar contents are
>>> being extracted, and I can see the contents in the build directory
>>> afterwards -- but they are not being included in the framework's jar
>>> file.
>>>
>>> What am I missing?
>>
>> Okay, I've made some incremental progress... It looks like the class
>> files *are* being merged into a jar file -- it's just not the jar
>> file that gets installed with my framework. Instead, it's called:
>>
>> [...]/_WOServerGeoPoint4.tmp/Versions/TMP/Resources/Java/
>> _WOServerGeoPoint4.jar
>>
>> I can see the target settings that are responsible for this -- but I
>> don't understand why they're there in the first place, so I'm not
>> sure what the "right" way to fix the problem is.
>>
>> In general, what is the purpose of the $(CLIENT_UNIQUIFIER) and
>> $(SERVER_UNIQUIFIER) strings in the target settings? I mean, I can
>> infer that they have something to do with the fact that WO Java
>> Client apps get some code downloaded to them from the WO
>> application... But how do I manipulate these settings if my goal is
>> to build a server-side-only framework that includes my
>> externally-produced classes bundled in its jar file?
>>
>> -- Kaelin
>>
>> _______________________________________________
>> WebObjects-dev mailing list
>> email@hidden
>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.