Ulrich,
Because of the way our various developers and development process
work (we hire lots of student help, restrict server access, and
deploy at announced times to a remotely administered server), I think
adding resources to the project is the way we have to go.
Editing the PB.project file is relatively easy, and I can always run
PBWO to get an example. For example:
WOAPP_RESOURCES =
(
Main.api,
SimpleTransformation.xsl
);
WEBSERVER_RESOURCES =
(
img
);
For build.xml, am I right that I will need the following:
<wsresources dir=".">
<include name="img/*"/> <!-- all files in img directory -->
<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="**/*.xsl"/> <!-- any .xsl files -->
<exclude name="**/*.eomodeld~/"/>
<exclude name="**/*.woa/**"/>
</resources>
And I would guess that this would be another way to specify:
<wsresources dir=".">
<include name="**/*.gif"/> <!-- all gifs -->
<include name="**/*.jpg"/> <!-- all jpgs -->
<exclude name="**/*.woa/**"/>
</wsresources>
I find much to like about Eclipse/WOLips, but the necessity of
learning Ant along with the IDE makes the learning curve steeper than
ProjectBuilder, IMO.
thanks for the help,
-- Paul
At 9:34 AM +0200 6/10/03, Ulrich Köster wrote:
>Hi Paul,
>
>WOLips adds only the default stuff to the PB.project. You have to
>add it manually. You have to be careful with the 'Update PB.project'
>command. All your changes get lost if you call it manually.
>
>You have to add it also to the build.xml.
>
>In the case the images are public, I would recommend the way trough
>the webserver. If you deliver the images trough the application,
>each image takes one transaction.
>A short how to:
>Add the images to the webserver doc root and make sure that the
>webserver is running.
>From the html. <IMG SRC="/img/foo.gif" ALT=foo WIDTH=149 HEIGHT=24>
>WOBuilder is smart enough to resolve this tag and show you the image
>from the webserver.
>
>Let me know if you need more help with it.
>
>Ulrich
>
>
>Am Montag, 09.06.03 um 22:26 Uhr schrieb Paul Hertz:
>
>>I want to add a .xsl file to my application resources. I can
>>obviously create it without difficulty in the application file
>>hierarchy; however, it is not automatically added to the PB.project
>>file, nor does it show up on regenerating the file.
>>
>>Do I have to add such resources by manually entering them under
>>WOAPP_RESOURCES in PB.project ?
>>
>>Or should I add this to the build.xml file within <resources dir="."> :
>>
>> <include name="**/*.xsl/"/>
>>
>>Or is there some command I haven't discovered to add resource files?
>>
>>What's the best practice? I imagine the build.xml file edit is, but
>>I am rather new to using this IDE.
>>
>>I have a similar problem with a directory of bitmap graphics,
>>"img." It is in the file hierarchy, but the WOLips->Update
>>PB.project command does not add it to the PB.project file under
>>WEBSERVER_RESOURCES. It seems to me that it should do this (and
>>that this worked in the past, worse yet).
>>
>>-- Paul
-- Paul Hertz <paul-hert..orthwestern.edu> |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| <http://www.northwestern.edu/people/paul-hertz>
This archive was generated by hypermail 2.0.0 : Tue Jun 10 2003 - 12:52:37 EDT