package com.blackduck.integration.detectable.detectable.explanation;

import java.io.File;

import com.blackduck.integration.detectable.ExecutableTarget;

public class FoundExecutable extends Explanation {
    private final String executableString;

    public FoundExecutable(File file) {
        this.executableString = file.toString();
    }

    public FoundExecutable(ExecutableTarget executableTarget) {
        this.executableString = executableTarget.toCommand();
    }

    public FoundExecutable(String name) {
        this.executableString = name;
    }

    @Override
    public String describeSelf() {
        return "Found executable: " + executableString;
    }
}
