#include <msp/io/print.h>
#include "builder.h"
#include "copy.h"
-#include "install.h"
+#include "installedfile.h"
using namespace std;
using namespace Msp;
{
FileTarget &file_tgt = dynamic_cast<FileTarget &>(*sources.front());
const SourcePackage &pkg = dynamic_cast<const SourcePackage &>(*file_tgt.get_package());
- Install *inst = new Install(builder, pkg, file_tgt, arg);
+ InstalledFile *inst = new InstalledFile(builder, pkg, file_tgt, arg);
inst->set_tool(*this);
return inst;
}
Task *Copy::run(const Target &target) const
{
- const Install &install = dynamic_cast<const Install &>(target);
+ const InstalledFile &install = dynamic_cast<const InstalledFile &>(target);
Worker *worker = new Worker(install);
return new InternalTask(worker);
}
-Copy::Worker::Worker(const Install &t):
+Copy::Worker::Worker(const InstalledFile &t):
target(t)
{
launch();