f.close();
-
+ std::cout << "executing update file: bbtk_config.xml " << std::endl;
ConfigurationFile::GetInstance().AddPackagePathsAndWrite( path );
std::string command;
+
+#ifdef __APPLE__
+ command = "source ~/.bashrc ; " + command;
+#endif
+
#if defined(WIN32)
command = "\"";
#endif
command += "\"";
#endif
command += " " + pname + " -q";
- std::cout << "executing '" << command << "'" << std::endl;
-if ( system ( command.c_str() ) )
- {
- std::cout << "An error occured while running '"
- << command << "'" << std::endl;
- // return 1; Feature #1676 - DFGO
- }
-
-
+ std::cout << "(SKIP EED) executing '" << command << "'" << std::endl;
+//if ( system ( command.c_str() ) )
+// {
+// std::cout << "An error occured while running '"
+// << command << "'" << std::endl;
+// // return 1; Feature #1676 - DFGO
+// }
command = "";
+
+#ifdef __APPLE__
+ command = "source ~/.bashrc ; " + command;
+#endif
+
#if defined(WIN32)
command = "\"";
#endif
command += "\"";
#endif
command += " -q";
- std::cout << "executing '" << command << "'" << std::endl;
- if ( ! system ( command.c_str() ) )
- {
- std::cout << "Package '"
- << pname << "' successfully plugged in" << std::endl;
- }
- else
- {
- std::cout << "An error occured while running '"
- << command << "'" << std::endl;
- //return 1; Feature #1676 - DFGO
- }
+ std::cout << "(SKIP EED) executing '" << command << "'" << std::endl;
+
+// if ( ! system ( command.c_str() ) )
+// {
+// std::cout << "Package '"
+// << pname << "' successfully plugged in" << std::endl;
+// } else {
+// std::cout << "An error occured while running '"
+// << command << "'" << std::endl;
+// //return 1; Feature #1676 - DFGO
+// }
+
return (int)0;
}
//==========================================================================
#-----------------------------------------------------------------------------
# bbtk_config.xml for the build tree
-IF(UNIX)
- CONFIGURE_FILE(
- ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/bbtk_config.xml
- @ONLY IMMEDIATE
- )
-ELSE(UNIX)
- CONFIGURE_FILE(
- ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/Debug/bbtk_config.xml
- @ONLY IMMEDIATE
- )
- CONFIGURE_FILE(
- ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
- ${EXECUTABLE_OUTPUT_PATH}/Release/bbtk_config.xml
- @ONLY IMMEDIATE
- )
-ENDIF(UNIX)
+#IF(UNIX)
+# CONFIGURE_FILE(
+# ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
+# ${EXECUTABLE_OUTPUT_PATH}/bbtk_config.xml
+# @ONLY IMMEDIATE
+# )
+#ELSE(UNIX)
+# CONFIGURE_FILE(
+# ${BBTK_CMAKE_DIR}/bbtk_config_build.xml.in
+# ${EXECUTABLE_OUTPUT_PATH}/bbtk_config.xml
+# @ONLY IMMEDIATE
+# )
+#ENDIF(UNIX)
#-----------------------------------------------------------------------------
#endif
sizeStrVec = mPackage_paths.size();
- for (iStrVec=0;iStrVec<sizeStrVec;iStrVec++){
+ for (iStrVec=0 ; iStrVec<sizeStrVec ; iStrVec++)
+ {
Utilities::replace( mPackage_paths[iStrVec] , INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR);
- }
+ } // for iStrVec
GetHelp(2);
Utilities::replace( configXmlFullPathName , INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR);
if ( Utilities::FileExists( configXmlFullPathName ))
- {
- bbtkMessage("config",1, "ConfigurationFile : [" << configXmlFullPathName <<
- "] found in current directory" << std::endl);
- //Read(configXmlFullPathName.c_str());
- // traiter le fichier local
- }
-
- // ==> Then we look for bbtk_config.xml in ".bbtk"
- else
- {
- configXmlFullPathName = Utilities::MakeUserSettingsFullFileName("bbtk_config.xml");
- if (!Utilities::FileExists( configXmlFullPathName ))
- {
- // ==> Nothing found, we create bbtk_config.xml in ".bbtk"
- InstallPath ();
- }
- }
+ {
+ bbtkMessage("config",1, "ConfigurationFile : [" << configXmlFullPathName <<
+ "] found in current directory" << std::endl);
+ //Read(configXmlFullPathName.c_str());
+ // traiter le fichier local
+ } else { // ==> Then we look for bbtk_config.xml in ".bbtk"
+ configXmlFullPathName = Utilities::MakeUserSettingsFullFileName("bbtk_config.xml");
+ if (!Utilities::FileExists( configXmlFullPathName ))
+ {
+ // ==> Nothing found, we create bbtk_config.xml in ".bbtk"
+ InstallPath ();
+ }
+ }
// In any case, deal with bbtk_config.xml!
Read(configXmlFullPathName.c_str());
//=========================================================================
void ConfigurationFile::InstallPath ()
{
-
/*--------------------------------------------------
New policy for bbtk_config.xml :
system(copyFile);
} // FileExists configPath
} // FileExists configXmlTmp
+
return;
// ------------------------------------------------------------------
XMLNode::parseFile((XMLCSTR)Get_config_xml_full_path().c_str(),
(XMLCSTR)"config",res);
- if ( res->error != eXMLErrorNone )
+ if ( res->error != eXMLErrorNone )
{
std::string mess = GetErrorMessage(res,Get_config_xml_full_path());
delete res;
#ifdef _WIN32
#endif
-
XMLError err = BB.writeToFile((XMLCSTR)Get_config_xml_full_path().c_str());
if ( err != eXMLErrorNone )
- {
- std::string mess = GetErrorMessage(res,Get_config_xml_full_path());
- bbtkDebugMessage("config",1,mess<< std::endl);
- bbtkError(mess);
- }
-
+ {
+ std::string mess = GetErrorMessage(res,Get_config_xml_full_path());
+ bbtkDebugMessage("config",1,mess<< std::endl);
+ bbtkError(mess);
+ } // if err
return true;
}
//=========================================================================