X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdatatool.cpp;h=9b101c7bf6187332636615af74a058ed06127c2f;hb=2d765e850b2360940111cbd522af659cc3c4aef7;hp=a956984a35deb6e9aa8b19eeca274fab4513db37;hpb=d334fc1d04b7f83c7a2e9f16439fec884f4de471;p=builder.git diff --git a/source/datatool.cpp b/source/datatool.cpp index a956984..9b101c7 100644 --- a/source/datatool.cpp +++ b/source/datatool.cpp @@ -1,6 +1,5 @@ #include #include -#include #include "builder.h" #include "component.h" #include "datacollection.h" @@ -16,10 +15,7 @@ using namespace Msp; DataTool::DataTool(Builder &b): Tool(b, "DATA") { - executable = builder.get_vfs().find_binary("mspdatatool"); - if(!executable) - builder.problem(string(), format("Can't find executable mspdatatool for tool %s", tag)); - + set_command("mspdatatool"); input_suffixes.push_back(".mdt"); } @@ -28,7 +24,7 @@ Target *DataTool::create_source(const Component &comp, const FS::Path &path) con return new DataTransform(builder, comp, path); } -Target *DataTool::create_target(const list &sources, const string &arg) const +Target *DataTool::create_target(const list &sources, const string &arg) { if(arg=="collection") {