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
  • Description:
    Hide

    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)

    Show
    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

People

Dates

  • Created:
    19/Dec/08 01:39 PM
    Updated:
    09/Apr/09 09:47 PM
    Resolved:
    19/Dec/08 01:52 PM