Hi Benoit,
Am 02.02.2004 um 13:38 schrieb Benoit Mangez:
> Hi Ulrich,
>
> On Monday, February 2, 2004, at 10:48 AM, Ulrich Köster wrote:
>
>> Hi Benoit,
>>
>> per default WOLips includes only some file types in the PB.project.
>> You can easily add the required files in the Preferences.
> I assume your talking about "Project>Properties>WOLips>webresources to
> include/exclude" ?
> I'm unable to change those properties since they are always reset to
> their default values. (I post a bug report about it.)
We're talking about different things. In the Preferences are settings
for the stuff that should be included in the PB.project.
>
>>
>> After that update the PB.project once manually with Context menu
>> entry. (WOLips ->Update PB.project).
>>
>> Can't reproduce your problem that WOBuilder does not display the
>> image.
> In fact, the problem is the following:
> I'm used to specifie the image filename with only the file name :
> "myImage.gif", but the path from the project root directory is :
> "WebResources/myImage.gif"
> If I specifie "WebResources/myImage.gif" as filename: it's OK ,
> WOBuilder display it! But I can't use this filename since it is no
> more valid when the framework is deployed.
Per default WOProject flattens all resources. In your case all files in
the WebResources folder end in the *.woa/Contents/WebServerResources.
You have to do some handwork in the build,xml.
1. Make sure that you don't copy your images twice:
<wsresources dir=".">
<include name="bla bla bla"/>
<exclude name="**/*.woa/**"/>
</wsresources>
2. Add a copy task directly after woapplication task:
</woapplication>
<copy
todir="${dest.dir}/${project.name}.woa/Contents/WebServerResources">
<fileset dir=".">
<include name="WebResources/**"/>
</fileset>
</copy>
</target>
I hope I'll find a better solution for it in the future. Feel free to
vote for it:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=WOL-1
Ulrich
>>
>> Ulrich
>>
>> Am 30.01.2004 um 17:59 schrieb Benoit Mangez:
>>
>>> Hi,
>>>
>>> Config : Eclipse 3.0, WOLips 1.0.1.16
>>>
>>> We've a almost all my images under /WebResources/ in
>>> MyFramework.framework
>>> We use those images in other frameworks.
>>> When I launch the WOApp, all images are found and correctly
>>> displayed.
>>> When I try to edit a WOComponent with WOBuilder, I can't see any
>>> images. (WOImages are binded with "framework" and "filename").
>>>
>>> So I take a look at PB.project of MyFramework and none of the
>>> WebResources is listed in it.
>>> I put manually one image's filename in the PB.project ( of
>>> MyFramework) and it appears in the filename dropdown menu of
>>> WOBuilder, but when I select it, WOBuilder still not displaying it.
>>>
>>> If I use the src binding, everything is fine: the WOImage is
>>> correctly displayed with WOBuilder (I just need to put it in my
>>> local WebServer). But this option isn't the good one for us because
>>> our WOApps are deployed on different platforms and the src url isn't
>>> always the same.
>>>
>>> Is it a bug, or I'm missing something ?
>>>
>>> Benoit.
>>>
>>
>
This archive was generated by hypermail 2.0.0 : Mon Feb 02 2004 - 08:34:26 EST