X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fjarsigner.cpp;h=b8c9a5092607f2c817147bb2b877864f465705cc;hb=HEAD;hp=a2a1c731e1ce6d16e127d1abf87f58592212789c;hpb=edd4771292a2273080fbcbac266c6831834b0b86;p=builder.git diff --git a/source/jarsigner.cpp b/source/jarsigner.cpp deleted file mode 100644 index a2a1c73..0000000 --- a/source/jarsigner.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include "component.h" -#include "filetarget.h" -#include "jarsigner.h" -#include "sourcepackage.h" - -using namespace std; -using namespace Msp; - -JarSigner::JarSigner(Builder &b): - Tool(b, "JSGN") -{ - set_command("jarsigner"); - set_run_external(_run); -} - -Target *JarSigner::create_target(const vector &, const string &) -{ - throw logic_error("not implemented"); -} - -ExternalTask::Arguments JarSigner::_run(const FileTarget &file, FS::Path &work_dir) -{ - const Tool &tool = *file.get_tool(); - - ExternalTask::Arguments argv; - argv.push_back(tool.get_executable()->get_path().str()); - - // TODO Make this generic - FS::Path home_dir = Msp::getenv("HOME"); - argv.push_back("-keystore"); - argv.push_back((home_dir/".android"/"debug.keystore").str()); - argv.push_back("-storepass"); - argv.push_back("android"); - - argv.push_back(FS::relative(file.get_path(), work_dir).str()); - argv.push_back("androiddebugkey"); - - return argv; -}