I’m trying to use the zip task in my custom plugin. The plugin uses an extension to configure the ‘from’ directory of the zip task to determine what to zip (path). Problem is that the extension property is not set when running the Zip task. Maybe wrong phase? Can’t get it to work. Any suggestions?
project.task(‘archiveFabric8Profile’, type: Zip, dependsOn: ‘createFabric8AgentProperties’) {
doLast {
def profileDir = project.buildDir.path + “/” + PluginUtil.parseProfilenameIntoPath(project.fabric8.profile)
from profileDir
}
}