Configuring target directories for application plugin's installApp and distZip tasks


(Damon Kohler) #1

What’s the best way to configure the destination directory for the application plugin? Looking at the plugin source, I don’t see a convention property to use.

I’d like to have installApp and distZip go into “${project.path}/dist” instead of “${project.buildDir}/install”.

Doing installApp.into project.file(‘dist’) seems to work. However, distZip.into project.file(‘dist’) does not seem to work.


(Peter Niederwieser) #2

‘distZip’ is of type ‘Zip’, which means you’ll have to use ‘distZip.destinationDir = project.file(‘dist’)’.