reprepare assets on rebuild

This commit is contained in:
raksa 2015-12-22 13:54:09 +07:00
parent 7d730d7c21
commit 341bf1aff8
1 changed files with 11 additions and 0 deletions

View File

@ -47,3 +47,14 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':libcocos2dx')
}
task cleanAssets(type: Delete) {
delete 'assets'
}
task copyAssets(type: Copy) {
from '../../Resources'
into 'assets'
}
clean.dependsOn cleanAssets
preBuild.dependsOn copyAssets