SmartSprites

IllegalArgumentException: file must be contained in oldRoot

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.2.1
  • Fix Version/s: 0.2.2
  • Component/s: None
  • 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)

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: