Menu

#13 Images saved in subfolders below /resources are not being copied

2015.05.0
wont-fix
2015-05-02
2014-08-04
No

In order to make images more manageable, I have a /resources folder and within that I have a sub folder for each chapter containing images used within that chapter.
So my XML looks like this:

<title>sample image</title> <mediaobject> <imageobject> <imagedata scalefit="1" width="80%" format="gif" fileref="resources/chapter1/mygif.gif"> </imagedata></imageobject> </mediaobject>

However I am finding that when using this subfolder structure - none of the images are being copied to the corresponding target/resources/chapter1 folder.
There appears to be a bug in that it all images must be stored within the resources folder itself and not in a subfolder.
If I put all my images into the resources folder then it works. However this makes it very difficult to manage.

Discussion

  • Nils Cordes

    Nils Cordes - 2014-08-09
    • status: open --> wont-fix
    • assigned_to: Nils Cordes
     
  • Nils Cordes

    Nils Cordes - 2014-08-09

    It is not possible to use subdirectories in the resources directory.
    The Ant copy task cannot remove just parts of path.
    So the property falten="true" is used. (http://ant.apache.org/manual/Tasks/copy.html)
    This behavior is needed to create XSL-FO from projects that have a directory structure like:
    source
    └── en
    ├── article_QuickStartGuide.xml
    ├── components_QuickStartGuide
    │   ├── resources
    │   │   ├── screenshot_AntBuildResults.png
    │   │   ├── screenshot_ConsoleViewAntBuild.png
    │   ├── section_Install.xml
    │   ├── section_Prerequisites.xml
    │   ├── section_References.xml
    │   └── section_Start.xml
    └── resources
    └── sticker_DEP4E_472px.svg

     
  • Nils Cordes

    Nils Cordes - 2014-08-10
    • Milestone: 2014.07.0 --> 2014.08.0
     

Log in to post a comment.