Uploaded image for project: 'SmartSprites'
  1. SmartSprites
  2. SMARTSPRITES-26

IllegalArgumentException: file must be contained in oldRoot

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.1
    • Fix Version/s: 0.2.2
    • Labels:
      None

      Description

      When root dir path and output path point directly to CSS directories (rather than directories containing both the CSS and images directories), the following exception will be thrown:

      Exception in thread "main" java.lang.IllegalArgumentException: file must be contained in oldRoot
      at org.carrot2.util.FileUtils.changeRoot(Unknown Source)
      at org.carrot2.labs.smartsprites.SpriteImageBuilder.getImageFile(Unknown Source)
      at org.carrot2.labs.smartsprites.SpriteImageBuilder.writeSprite(Unknown Source)
      at org.carrot2.labs.smartsprites.SpriteImageBuilder.buildSpriteReplacements(Unknown Source)
      at org.carrot2.labs.smartsprites.SpriteImageBuilder.buildSpriteImages(Unknown Source)
      at org.carrot2.labs.smartsprites.SpriteBuilder.buildSprites(Unknown Source)
      at org.carrot2.labs.smartsprites.SmartSprites.main(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              stachoo Stanisław Osiński
              Reporter:
              stachoo Stanisław Osiński
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: