Using variable in copy exclue exclue

Hi All,

Below is my code to copy files. while copying file i am using a exclude and include filter but the values for the filter will be derived from the property file. Unfortunately it is not working as expected. Am i doing anything wrong?

property file property

Copy process code

copy {
			toFolder = new File(chocoRootDir, baseFolder)
			if(choco_eaglemgr_excl != ""){ 'Using exclude filter ' + choco_eaglemgr_excl
				exclude choco_eaglemgr_excl
			if(choco_eaglemgr_incl !=""){ 'Using include Filter ' + choco_eaglemgr_incl
				include choco_eaglemgr_incl

Baskar K