groovy - multipleCompilationError when parsing config file using ConfigSlurper -


i need access config file in groovy code using configslurper using blocks inside file access each 1 depending on user info !

so need use properties in 1 block in file ( based in user info ) , set object in code ! used

def pc = configslurper().parse(newfile(configmanager.config.priceinfo.filepath).touri().tourl()) 

my file contains closures blocks following :

   employee {     sth = 1      other =2      }      student {     sth = 10      other =20 }  default { sth = 100 other =200 } 

i multiplecompilationerror exception when parsing file !

i using block in file name default !

employee { sth = 1  other =2  }  student { sth = 10  other =20 }  default{ sth = 100  other =200 } 

this causing exception ! seems default keyword class in groovy ! changed 'default' other name , works me anyhow :)


Comments