@Nullable @Override protected CompileInvocation makeCompileProcessBuilder(@NonNull File file, @NonNull File output) throws AaptException { Preconditions.checkArgument(file.isFile(), "!file.isFile()"); Preconditions.checkArgument(output.isDirectory(), "!directory.isDirectory()"); if (!file.getName().endsWith(SdkConstants.DOT_PNG)) { return null; } if (!mProcessMode.shouldProcess(file)) { return null; } File outputFile = compileOutputFor(file, output); ProcessInfoBuilder builder = new ProcessInfoBuilder(); builder.setExecutable(getAaptExecutablePath()); builder.addArgs("singleCrunch"); builder.addArgs("-i", file.getAbsolutePath()); builder.addArgs("-o", outputFile.getAbsolutePath()); return new CompileInvocation(builder, outputFile); }
getAaptExecutablePath(), logger, cruncherProcesses);
builder.setExecutable(getAaptExecutablePath()); builder.addArgs("package");