google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

Groovy Model Parser doesn't handle group-ref correctly #839

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Try using this wro.groovy:

groups{
    a{
        css "/js/a.js"
    }
    b{
        css "/js/b.js"
    }
    ab{
        'group-ref' 'a'
        'group-ref' 'b'
    }
}

Wro ends up with this exception:
| Error 2014-01-30 14:05:49,871 [http-bio-8080-exec-1] ERROR 
factory.FallbackAwareWroModelFactory  - Error while creating the model
Message: Reference to an unknown group : group-ref
    Line | Method
->>  120 | groupRef              in 
ro.isdc.wro.extensions.model.factory.ResourceDelegate
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    127 | methodMissing         in     ''
|    107 | doCall . . . . . . .  in Wro$_run_closure1_closure7
|     85 | doCall                in 
ro.isdc.wro.extensions.model.factory.GroupDelegate$_resolveGroupResources_closur
e1
|     82 | resolveGroupResources in 
ro.isdc.wro.extensions.model.factory.GroupDelegate
|     61 | groups                in 
ro.isdc.wro.extensions.model.factory.WroModelDelegate
|      3 | run . . . . . . . . . in Wro
|     39 | parse                 in 
ro.isdc.wro.extensions.model.factory.GroovyModelParser
|     42 | create . . . . . . .  in 
wro4j.grails.plugin.GrailsWroManagerFactory$1
|     27 | create                in 
ro.isdc.wro.model.factory.WroModelFactoryDecorator
|     48 | create . . . . . . .  in 
ro.isdc.wro.model.factory.FallbackAwareWroModelFactory
|     22 | create                in     ''
|     27 | create . . . . . . .  in 
ro.isdc.wro.model.factory.WroModelFactoryDecorator
|     55 | create                in 
ro.isdc.wro.model.factory.ModelTransformerFactory
|     27 | create . . . . . . .  in     ''
|     60 | initialize            in 
ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator$1
|     50 | initialize . . . . .  in     ''
|     33 | get                   in ro.isdc.wro.util.LazyInitializer
|    117 | create . . . . . . .  in 
ro.isdc.wro.model.factory.DefaultWroModelFactoryDecorator
|     35 | create                in     ''
|     71 | process . . . . . . . in 
ro.isdc.wro.model.group.processor.GroupsProcessor
|    102 | loadValue             in 
ro.isdc.wro.cache.support.DefaultSynchronizedCacheStrategyDecorator
|     35 | loadValue . . . . . . in     ''
|     55 | get                   in 
ro.isdc.wro.cache.support.AbstractSynchronizedCacheStrategyDecorator
|     63 | serveProcessedBundle  in ro.isdc.wro.manager.ResourceBundleProcessor
|    159 | process               in ro.isdc.wro.manager.WroManager
|    350 | processRequest . . .  in ro.isdc.wro.http.WroFilter
|    290 | doFilter              in     ''
|     25 | doFilterInternal . .  in 
com.mackenzie.marketing.web.filter.LoggingFilter
|   1110 | runWorker             in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . . . . . . . in 
java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run                   in java.lang.Thread

Original issue reported on code.google.com by candrews...@gmail.com on 30 Jan 2014 at 7:12

GoogleCodeExporter commented 9 years ago
Nevermind... not a bug.

I'm just a bit slow and didn't read 
https://code.google.com/p/wro4j/wiki/GroovyWroModel :(

Original comment by candrews...@gmail.com on 30 Jan 2014 at 7:18