@@ -34,7 +34,7 @@ data class SparseImage(var info: SparseInfo = SparseInfo()) {
3434 partName,
3535 workDir,
3636 File (workDir, File (info.output).nameWithoutExtension).path,
37- File (workDir , File (info.pulp).name + " .signed" ).path
37+ File (Helper .prop( " intermediateDir " ) , File (info.pulp).name + " .signed" ).path
3838 )
3939 }
4040
@@ -44,7 +44,7 @@ data class SparseImage(var info: SparseInfo = SparseInfo()) {
4444 partName,
4545 workDir,
4646 File (workDir, File (info.output).nameWithoutExtension).path,
47- File (workDir , " ${info.output} .signed" ).path
47+ File (Helper .prop( " intermediateDir " ) , " ${info.output} .signed" ).path
4848 )
4949 }
5050
@@ -119,7 +119,7 @@ data class SparseImage(var info: SparseInfo = SparseInfo()) {
119119 if (info.outerFsType == " sparse" ) {
120120 img2simg(File (workDir, (File (info.output).name + " .signed" )).path, File (info.output).name + " .signed" )
121121 } else {
122- val s = info.pulp + " .signed"
122+ val s = Helper .joinPath( Helper .prop( " intermediateDir " ) !! , File ( info.pulp + " .signed" ).name)
123123 val t = info.output + " .signed"
124124 log.info(" Moving $s -> $t " )
125125 Files .move(Path (s), Path (t), java.nio.file.StandardCopyOption .REPLACE_EXISTING )
@@ -261,7 +261,7 @@ data class SparseImage(var info: SparseInfo = SparseInfo()) {
261261 DefaultExecutor ().apply {
262262 streamHandler = PumpStreamHandler (System .out , System .err)
263263 }.execute(CommandLine .parse(" aosp/plugged/bin/sefcontext_compile" ).apply {
264- addArguments(" -o " + Helper .prop(" workDir" ) + " file_contexts.bin" )
264+ addArguments(" -o " + File ( Helper .prop(" workDir" ), " file_contexts.bin" ).path )
265265 addArgument(" aosp/plugged/res/file_contexts.concat" )
266266 }.also { log.warn(it.toString()) }, env)
267267 }
0 commit comments