Hello,
In a copy task I define a regexp in order to rename my items stripping some useless parts.
tasks.create("CopyResources", Zip) {
from project.configurations.distribResources
destinationDirectory=file("$buildDir/resources")
archiveBaseName='DistribResources'
rename '([a-z-]*[a-z_]+)([_A-Z0-9\\.-]+)+(-[a-z_]+)?\\.(jar|zip)','$1$3.$4'
}
One of the copy item is :
cdrf_irs-4.5.0-DEV_CDRF-4.5_RC3-SNAPSHOT-schema.zip
I check here that the regexp is correct.
But the task loops and never ends. Any idea ?