diff --git a/build.gradle b/build.gradle index 1c01617..953407f 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,10 @@ task unpack_cpio(type: Exec, dependsOn: unpack_ramdisk_gz) { args = ['-i', '-F', '../ramdisk.img'] } +task unpack(type: Delete, dependsOn: unpack_cpio) { + delete workdir + "/ramdisk.img.gz" +} + public void unGunzipFile(String compressedFile, String decompressedFile) throws IOException { byte[] buffer = new byte[1024]; try { @@ -65,7 +69,3 @@ public void unGunzipFile(String compressedFile, String decompressedFile) throws throw ex; } } - -task unpack(type: Delete, dependsOn: unpack_cpio) { - delete workdir + "/ramdisk.img.gz" -}