You can do it by adding a task in your build.xml
Something like this
<!-- Copy gif into Resoures dir -->
<target name="postinstall">
<copy todir="${dest.dir}/${project.name}.woa/Contents/Resources">
<fileset
dir="${dest.dir}/${project.name}.woa/Contents/Resources/"
casesensitive="yes">
<include name="**/*.gif"/>
</fileset>
<mapper type="flatten"/>
</copy>
</target>
and add postinstall in your install target
<target name="install"
depends="setProps,init.install,build.woapp,war,ssdd, postinstall "/>
Le 6 avr. 05, à 09:01, Jean Pierre Malrieu a écrit :
>
> Le 4 avr. 05, à 23:14, Jean Pierre Malrieu a écrit :
>
>> Facing all possible deployment problems one after the other, and
>> shamelessly asking the list (well, in fact, with a bit of shame).
>>
>> Now that my app is deployed, images do not show up (they do in
>> development).
>> Images are in a framework, in a directory called "Images".
>> Here is the html generated in deployment:
>>
>> <img border="0" ismap
>> src="/ERROR/NOT_FOUND/framework=TDComps/filename=image1.gif">
>>
>> Now I am thinking: could it be a problem with the fact that my images
>> are in a directory? I am not seeing this directory in the generated
>> htlm. But maybe WO is just skipping filepath information when it
>> generates the html for a resource it does not find.
>
> It seems that images must not be in a directory. That is:
> /Library/Frameworks/TDComps.framework/WebServerResources/Images/
> Image1.gif does not work, while
> /Library/Frameworks/TDComps.framework/WebServerResources/Image1.gif
> works.
>
> This is a bit of a pain, because each time I re-install the framework,
> I suppose I will have to manually copy the images at the right
> place...
>
> JPM.
>
>
This archive was generated by hypermail 2.0.0 : Wed Apr 06 2005 - 07:48:35 EDT