Re: WOLips and Resources Question
Re: WOLips and Resources Question
- Subject: Re: WOLips and Resources Question
- From: Mike Schrag <email@hidden>
- Date: Wed, 5 Dec 2007 21:10:12 -0500
This is why I only ever recommend using the Wonder-based project
layout (which is actually the default for all WO app and framework
projects in WOLips as of several builds ago).
I would take a step back from your problem and simplify simplify
simplify. Make a new project using one of the stock project templates
(I don't know what versions you're using, but the more recent WOLips'
use Sources, Components, Resources, WebServerResources at the top
level, with a VERY SIMPLE set of rules for inclusion that always
work*). Make this empty project and setup your scenario and see if it
works properly. I would then setup your project just like this --
Sources, Components, Resources, WebServerResources (you don't have to
do this, but we're simplifying here) and then just copy the woproject
resources.*, wsresources.*, etc patternset files over to your original
project.
I have been doing nothing but WOLips training now for several days,
and I've created somewhere around 20 example frameworks and projects
based on the Wonder-style layout, maybe 10 of which were Xcode
conversions, and it's been pretty darn smooth (kudos to Pascal).
*The one caveat I will put here is that there is a bug in WOLips at
the moment with these rules on Windows (it looks like they are
evaluating differently on Windows -- fix to be coming soon), but given
the file paths you've mentioned, I think you're on OS X, which gets to
use the traditional definition of "always" in "always works" :)
ms
On Dec 5, 2007, at 8:58 PM, Gaastra Dennis - WO Lists wrote:
Dear List,
After 6 hours, still no result. Why can't it just work like with
XCode???
1. The "Resources" folder has no R, but the Fonts folder does.
2. Added <resources dir="Resources/Fonts">...</resources> to
build.xml.
3. In the "build" subdirectory, everything is fine.
4. The installed framework now has no Fonts directory at all....
Please help; We thought Eclipse was supposed to be so good?
All we need is to have: /Library/Frameworks/ABC.framework/Resources/
Fonts with all the fonts. Why is this so impossible?
With Kind Regards,
Dennis
On 5-Dec-07, at 4:10 PM, Andrew Lindesay wrote:
Hello Dennis;
I had the same problem and added a section for each bunch of
resources so they end up flattened;
<resources dir="Resources/graphics">
<patternset>
<includesfile name="woproject/resources.include.patternset" />
<excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>
<resources dir="Resources/misc">
<patternset>
<includesfile name="woproject/resources.include.patternset" />
<excludesfile name="woproject/resources.exclude.patternset" />
</patternset>
</resources>
cheers.
Yes, we used the import script from Pascal with the Wonder
templates. Everything else seemed to work OK, except for the
Resources: somehow, they would always end up within
WebServerResources, and not the top-level one.
...
Or he had not used the Wonder version and is getting the
flattening effect of the standard build (which I will try to not
say nasty things about no matter how much it might deserve it as
I have no time to fix it).
___
Andrew Lindesay
www.lindesay.co.nz
_______________________________________________
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
_______________________________________________
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