Hello,

I've got a problem with a build script in ant. The (Blackberry) project build successfully but the architecture of catalogues inside the JAR and later COD files is not correct. The structure of my project catalogues is:

--build.xml
--src
--res
|-240*
|-320*
|-360*
|-480*
|-some images and other resources

*these folders contain the same set of graphics for different resolutions

I would like to have the 'res' catalogue in the JAR (and later COD) in the same structure as it is in the project, so in other words to take away whole /res directory and set it in the COD file.

The essential part of my build script is:

Java Code:
	 
<rapc verbose="true"
      exepath="${jde.home}/bin"
      destdir="${basedir}/build"
      jdehome="${jde.home}"
      output="ApplicationName"
>
<src path="${basedir}/src" />
<src path="${basedir}/res" />
<import location="${basedir}/lib/Library.jar" />
<jdp type="library"
    title="Library"
    vendor="VENDOR"
    version="${version}"
description="lib"
/>
<jdp type="cldc"
    description="${client.desc}"
    title="${client.name}"
    vendor="VENDOR"
    version="${version}"
    runonstartup="true"
    systemmodule="true"
>
<entry arguments="gui"
      icon="icon.png"
      runonstartup="false"
      systemmodule="false"
      ribbonposition="3"
  title="${client.name}"
/>
<entry arguments="service"
systemmodule="true"
runonstartup="true"
startuptier="7"
title="Service"
/>
</jdp>
</rapc>
I think that I'm doing something wrong with the

<src path="${basedir}/res" />

part. The effect for now is that the largest 480 subdirectory contents are copied into the COD file. I suspect the all images from all resolution folders are simply copied but the 480 contents overwrite the previous so they are left only.

Please help