#include <msp/core/environ.h>
#include <msp/fs/utils.h>
#include "component.h"
-#include "externaltask.h"
#include "filetarget.h"
#include "jarsigner.h"
#include "sourcepackage.h"
Tool(b, "JSGN")
{
set_command("jarsigner");
- set_run(_run);
+ set_run_external(_run);
}
Target *JarSigner::create_target(const vector<Target *> &, const string &)
throw logic_error("not implemented");
}
-Task *JarSigner::_run(const FileTarget &file)
+ExternalTask::Arguments JarSigner::_run(const FileTarget &file, FS::Path &work_dir)
{
const Tool &tool = *file.get_tool();
argv.push_back("-storepass");
argv.push_back("android");
- FS::Path work_dir = file.get_component()->get_package().get_source_directory();
-
argv.push_back(FS::relative(file.get_path(), work_dir).str());
argv.push_back("androiddebugkey");
- return new ExternalTask(argv, work_dir);
+ return argv;
}