Hi,
no I mean to use the java stuff for it. Take a look at
http://www.doc.ic.ac.uk/~jpc1/linux/jdk-docs-1.1.5/guide/misc/
resources.html on how locate resources in java. Handle .xml like .class
files. All you need is the package, with should be unique for all of
your jars.
In a future relase there will be an option to list files that should go
into the PB.project.
Ulrich
Am Mittwoch, 23.04.03 um 17:07 Uhr schrieb Frédéric Dreier:
> so, if i have an XML resource file in the
> ./Blabla.subproj/src/org/package/ directory, it is copied in the same
> subdirectory structure in the resource directory.. then i should code
> the whole path in my java file (i.e. inputStreaForResourceNamed(...)
> method) which is not really nice.
>
> I have exactly the same problem running in ResourceBundle mode.
>
>
>
> -----Message d'origine-----
> De : Ulrich Köster [mailto:ulric..bjectstyle.org]
> Envoyé : mercredi, 23. avril 2003 08:59
> Ŕ : Frédéric Dreier
> Cc : woproject-de..bjectstyle.org
> Objet : Re: Resources
>
> Hi,
>
> to get the the rapid back I may suggest to switch to ResourceBundle in
> the future. The ant scripts are right place for it. Both the
> application and the framework task have a section like:
> <wsresources dir=".">
> <include name="addYourWebServerResourcesHere"/>
> <exclude name="**/*.woa/**"/>
> </wsresources>
> <resources dir=".">
> <include name="Properties"/>
> <include name="**/*.eomodeld/"/>
> <include name="**/*.d2wmodel"/>
> <include name="**/*.wo/"/>
> <include name="**/*.api"/>
> <include name="**/*.strings"/>
> <exclude name="**/*.eomodeld~/"/>
> <exclude name="**/*.woa/**"/>
> </resources>
>
> To include *.gif to wsresources and *.txt and hello.xml to resources:
> <wsresources dir=".">
> <include name="**/*.gif"/>
> <exclude name="**/*.woa/**"/>
> </wsresources>
> <resources dir=".">
> <include name="Properties"/>
> <include name="**/*.eomodeld/"/>
> <include name="**/*.d2wmodel"/>
> <include name="**/*.wo/"/>
> <include name="**/*.api"/>
> <include name="**/*.strings"/>
> <include name="**/*.txt"/>
> <include name="**/hello.xml"/>
> <exclude name="**/*.eomodeld~/"/>
> <exclude name="**/*.woa/**"/>
> </resources>
>
> You may have to refresh the project to see the stuff in the woa.
>
> Ulrich
>
> Am Dienstag, 22.04.03 um 20:12 Uhr schrieb Frédéric Dreier:
>
> Ok, everything seems to work :-)
>
> I turn off the turnaround mode, but i need to copy each time all
> resources in the MyApp.woa/Content/Resources directory and images in
> in MyApp.woa/Content/WebserverResources (even if they are listed in
> PB.project)... how could i automatize this? I look at the ant script
> (build.xml in the project dir) but it do not seems to be used.
>
> Thanks,
>
> Frédéric
>
> -----Message d'origine-----
> De : Ulrich Köster [mailto:ulric..bjectstyle.org]
> Envoyé : jeudi, 17. avril 2003 17:07
> Ŕ : Frédéric Dreier
> Cc : woproject-de..bjectstyle.org; ruettiman..mazing-technologies.ch
> Objet : Re: Resources
>
> Hi Frédéric,
>
> there is a command line option to enable/disable it. The rapid
> turnaround mode works only in development mode. When you start the
> application there are some lines saying found project x and use
> resources from there. To test it launch your application, modify and
> save Main.wo and click refresh in the browser. You should see the
> changes made to Main.wo. The rapid turnaround mode just takes the
> resources from the project rather then from the application. That is
> the reason for your problem. In the rapid turnaround mode the
> application looks into the PB.project to find the resource. If the
> resource is there but not a corresponding entry in the PB.project the
> application won't load the resource.
>
> Ulrich
>
> Am Donnerstag, 17.04.03 um 16:56 Uhr schrieb Frédéric Dreier:
>
> Thx, i have updated the PB.project and it works now :-)
>
> But what is the "rapid turnaround mode" and how can i turn it off/on?
>
>
>
> -----Message d'origine-----
> De : Ulrich Köster [mailto:ulric..bjectstyle.org]
> Envoyé : jeudi, 17. avril 2003 16:39
> Ŕ : Frédéric Dreier
> Cc : woproject-de..bjectstyle.org; ruettiman..mazing-technologies.ch
> Objet : Re: Resources
>
> Hi Frédéric,
>
> this is a shortcoming in current implementation due to the fact that
> can not choose which resources should go into the PB.project. There
> are two ways to handle this. Disable the rapid turnaround mode or add
> the resources manually to the PB.project.
>
> Ulrich
> Am Donnerstag, 17.04.03 um 15:29 Uhr schrieb Frédéric Dreier:
>
> Hi,
>
> I used to access resources (with ProjectBuilder) using :
>
> resourceManager().bytesForResourceNamed("lala.plist",null,null)
>
> For some reason, i cannot get it working with wolips
> (nullpointerexception).
> Should i add some path or copy files somewhere? Actually resources are
> in
> the project root and are also in the builded jar file.
>
>
> Thx,
>
> dreier
>
>
This archive was generated by hypermail 2.0.0 : Thu Apr 24 2003 - 10:00:46 EDT