#include <stdexcept>
#include <msp/fs/utils.h>
-#include <msp/strings/format.h>
#include "builder.h"
#include "component.h"
#include "datacollection.h"
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");
}
return new DataTransform(builder, comp, path);
}
-Target *DataTool::create_target(const list<Target *> &sources, const string &arg) const
+Target *DataTool::create_target(const list<Target *> &sources, const string &arg)
{
if(arg=="collection")
{