From 6736d9aac3e7d1591cba33852126abf79dd18a57 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 14 Sep 2014 21:54:58 -0400 Subject: added test to check constructor references --- build.gradle | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 10294292..767b0321 100644 --- a/build.gradle +++ b/build.gradle @@ -82,8 +82,16 @@ task jarInheritanceTree( type: Jar ) { archiveName( "testInheritanceTree.jar" ) } +task jarConstructors( type: Jar ) { + from( sourceSets.test.output ) { + include( "cuchaz/enigma/inputs/Keep.class" ) + include( "cuchaz/enigma/inputs/constructors/**" ) + } + archiveName( "testConstructors.jar" ) +} + task obfTestCases( type: proguard.gradle.ProGuardTask ) { - dependsOn jarLoneClass, jarInheritanceTree + dependsOn jarLoneClass, jarInheritanceTree, jarConstructors libraryjars( "${System.getProperty('java.home')}/lib/rt.jar" ) overloadaggressively @@ -94,7 +102,7 @@ task obfTestCases( type: proguard.gradle.ProGuardTask ) { keep( "class cuchaz.enigma.inputs.Keep" ) - def jarNames = [ "LoneClass", "InheritanceTree" ]; + def jarNames = [ "LoneClass", "InheritanceTree", "Constructors" ]; jarNames.each() { injars( "build/libs/test${it}.jar" ) outjars( "build/libs/test${it}.obf.jar" ) -- cgit v1.2.3