Hi Alexander,
You have to name the resources that shoud be included in the Pb.project.
From the menu:
Window->Preferences->WOLips->Project Builder->WOApp Resouces Include
It does not force an update of your PB.project.
From the context menu of a project select WOLips->PB.project. It's only
required once. WOLips updates the PB.project whenever you add resources
to the project.
Ulrich
Am 13.11.2003 um 18:18 schrieb Alexander Schneider:
> Hi,
>
> I solved my last problem with the eogenerater ant task by prefixing
> the exec-path with the basedir and after that Ant was able to find the
> eogenerator executable just fine.
>
> So I converted my project and everything went smoothly until I tried
> to start my app.
>
> We have a framework with configuration properties which are stored in
> files named foo.props. I created a WOLips framework and put the
> property files under frameworkname/other/configuration/foo.props.
>
> I added the following section in the build.xml:
>
> <!-- woproject tasks -->
> <target name="build.woframework">
> <woframework name="${framework.name}" destDir="${dest.dir}">
> <classes dir="${classes.dir}">
> </classes>
> <wsresources dir=".">
> <include name="addYourWebServerResourcesHere"/>
> <exclude name="**/*.framework/**"/>
> </wsresources>
> <resources dir=".">
> <include name="**/*.props"/>
> <include name="**/*.cdict"/>
> <include name="**/*.prototypes"/>
> <include name="**/*.eomodeld/"/>
> <include name="**/*.d2wmodel"/>
> <include name="**/*.wo/"/>
> <include name="**/*.api"/>
> <include name="**/*.strings"/>
> <exclude name="**/*.eomodeld~/"/>
> <exclude name="**/*.woa/**"/>
> </resources>
> <lib dir=".">
> <include name="Add .jar's that should be copied in the
> framework."/>
> <exclude name="**/*.woa/**"/>
> </lib>
> </woframework>
> </target>
>
>
> After building and installing the framework the "other/configuration"
> directory is properly located under
> "Local/Library/Frameworks/framework/Resources/other/configuration".
>
> But I cannot access the property files via the ResourceManager by
> calling:
>
> URL u =
> WOApplication.application().resourceManager().pathURLForResourceNamed("
> other", "ConfigurationData", NSArray.EmptyArray);
>
> Before the switch this worked fine. What is different is that under
> WOAPP_RESOURCES in the PB.project that section is empty in the Ant
> project. In the "old" project it was "WOAPP_RESOURCES =
> (configuration)".
>
> This is probably a problem that the PB.project does not correctly
> reflect the state of the resources. It works fine with eomodels
> though. Can I specify which resources will be included except the
> "build.xml" or is it a bug?
>
> Cheers
> Alex
>
> PS: Sorry for that long post. :-)
>
This archive was generated by hypermail 2.0.0 : Fri Nov 14 2003 - 03:49:51 EST