It should be noted there is a potential problem when using the embed="true"
flag. When the *ClassPath.txt files are generated, it is filled in with the
results of a directory scanner. This results in an alphabetical listing of
your frameworks. Oftentimes the classpath ordering is important. It seems
that the generation of the *ClassPath.txt should be based off of the values
of the framework(s) elements. When there are wildcard characters in the
includes, you are of course allowing those to be in a random order.
Otherwise, keep them in the same order.
Anyone have thoughts on changing this from a directory scan to respecting
the ordering specified in the framework elements? I can change the code (or
add another option for the alternate behavior).
-Bob.
On 12/8/06, Chuck Hill <chil..lobal-village.net> wrote:
>
> Hi Peter,
>
> On Dec 8, 2006, at 6:16 PM, Peter Wilkins wrote:
>
> > When I build my application in XCode, it bundles all the dependent
> > frameworks and jars into the .woa application.
>
> I am pretty sure that it does not do that out of the box. Someone
> must have added some scripting steps.
>
>
> > When I run the Ant WOApplication task in Eclipse it doesn't bundle
> > the files, but references them in the MacOS*ClassPath.txt files.
> >
> > How would I go about bundling the dependent frameworks and jars
> > into the woa application package?
>
> 'tis easy. I am an "edit the build.xml file directly" kind of guy.
> Maybe there is an easier GUI way.
>
> So. Open up the build.xml file. Find the build.woapp target. Find
> where it has
> <frameworks root="${wo.wolocalroot}">
> and change it to
> <frameworks root="${wo.wolocalroot}" embed="true">
> Do the same for
> <frameworks root="${user.home}">
> if needed.
>
> For the jars, look for this just a bit further down:
>
> <lib dir=".">
> <include name="Add .jar's that should be copied in the woa."/>
> <exclude name="**/*.woa/**"/>
> </lib>
>
> Change the include to be *.jar or name each one directly.
>
> Docs are
> http://www.objectstyle.org/confluence/display/WOL/WOApplication
> http://www.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks
>
> 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
>
>
>
>
>
>
This archive was generated by hypermail 2.0.0 : Mon Dec 11 2006 - 13:16:23 EST