// Check arguments
if (argc != 4)
{
- std::cout << "usage : bbConfigurator <path_to_bbs> <package_name> <output_path>" << std::endl;
+ std::cout << "bbpConfigurator usage: bbConfigurator <path_to_bbs> <package_name> <output_path>" << std::endl;
return 1;
}
std::string package_name(argv[2]);
std::string path_out(argv[3]);
+ std::cout << "bbpConfigurator launched with bbs path: '" << path_bbs <<
+ "', package: '" << package_name <<
+ "', output path: '" << path_out << "'." << std::endl;
+
// Get bbs files in path_bbs
std::vector<bf::path> files = getFileList(path_bbs);
if(files.size() == 0)
{
- std::cout << "No files to check." << std::endl;
+ std::cout << "bbpConfigurator: No files to check in bbs path. "
+ "An empty bbp will be created for the package '" << package_name << "'." << std::endl;
// Write results to bbp file
#ifdef WIN32
// Check there are no cycles in graph
if(isCycle(g))
{
- std::cout << "there are dependency cycles, please check your scripts." << std::endl;
+ std::cout << "bbpConfigurator: There are dependency cycles, please check your scripts in '" <<
+ path_bbs << "'. No bbp file created." << std::endl;
return 2;
}
else
{
- std::cout << "no cycles, we keep going." << std::endl;
+ std::cout << "bbpConfigurator: No cycles detected in dependency graph." << std::endl;
std::vector<int> priorities(boxs.size(), -1);
setPriorities(g, priorities);
// for (int i = 0; i < (int)priorities.size(); i++)
out << "#-- EOF ----------------------------------" << std::endl;
out.close();
+
+ std::cout << "bbpConfigurator: bbp file created at '" << fname << "'." << std::endl;
}
return 0;
}
}
else
{
- std::cout<< "the path to the bbs's should be a folder and not a file.";
+ std::cout<< "bbpConfigurator: The path to the bbs's doesn't exist or is not a folder. ('" << path << "')" << std::endl;
return files;
}