-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
46 lines (38 loc) · 1.14 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apply plugin: 'java'
apply plugin: 'maven'
version = '2.3.4'
group = 'com.ibm.zurich.idmx'
ext.idemix_archive = "IdentityMixer_2-3-4.zip"
ext.idemix_dir = "com.ibm.zurich.idmx.2_3_4/"
ext.idemix_src_dir = idemix_dir + "src/"
ext.patch_dir = "patches/"
sourceSets.main.java {
srcDir idemix_src_dir
}
def applyPatch(patchFile) {
ant.patch (
dir: idemix_dir,
strip: "1",
patchfile: patch_dir+patchFile
)
}
task prepare {
inputs.file idemix_archive
outputs.dir idemix_dir
doLast {
ant.unzip(src: idemix_archive, dest: ".")
applyPatch "BUG-proving-nonce-length.patch"
applyPatch "BUG-unsigned-byte-array-interpretation.patch"
applyPatch "FEATURE-allow-inputstream-as-input.patch"
applyPatch "FEATURE-context-as-parameter.patch"
applyPatch "FEATURE-nonce-as-parameter.patch"
applyPatch "SMARTCARD-negative-values.patch"
applyPatch "SMARTCARD-test-files.patch"
applyPatch "BUG-missing-default-case.patch"
}
}
compileJava.dependsOn prepare
task cleanPatchedCode(type: Delete) {
delete idemix_dir
}
clean.dependsOn cleanPatchedCode