fixes #41 - fixes Ziggy problem w/ filtering JAR

This commit is contained in:
Connor Tumbleson 2012-10-08 14:39:58 -05:00
parent 5ab853a249
commit f551710f51

View File

@ -2,6 +2,7 @@ apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'license'
ext.apktoolversion = '1.5.1-SNAPSHOT'
import org.apache.tools.ant.filters.*
repositories {
mavenCentral()
@ -83,17 +84,20 @@ subprojects {
}
}
project(':brut.apktool:apktool-lib') {
gradle.taskGraph.whenReady {
task copy << {
from 'src/main/resources'
into 'build/resources/main'
include '**/*.jar'
}
}
processResources {
from('src/main/resources/properties') {
include '**/*.properties'
into 'properties'
ext.fullrev = ''
ant.loadfile(srcFile: "../../.git/refs/heads/master", property: ext.fullrev)
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
filter(ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
}
from('src/main/resources/') {
include '**/*.jar'
}
includeEmptyDirs = false
}
dependencies {
compile ("junit:junit:4.10") {