]> Creatis software - bbtk.git/blobdiff - kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp
Commented the aborts launched at installation time.
[bbtk.git] / kernel / appli / bbRegenerateBoxesLists / bbRegenerateBoxesLists.cpp
index b981604ebe418ca462d1ba3a3ecc57a25d986529..198d7cd23da8756304ab5b645a3d8a350afd103f 100644 (file)
@@ -23,26 +23,30 @@ int main(int argc, char **argv)
       bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
       I->SetCommandLine(true);
       I->SetThrow(false);
-      
-      
+
       std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
       doc_path += "bbdoc";
       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
-      
-      I->InterpretLine( "exec freeze");
+
+      I->InterpretLine( "exec freeze_no_error");
       I->InterpretLine( "include *");
-      I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html");
-       I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html");
-       I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html");
-       I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html");
-       
+      I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials, doc_path   + "index-alpha.html");
+      I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages, doc_path   + "index-package.html");
+      I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories, doc_path + "index-category.html");
+      I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors, doc_path   + "index-adaptors.html");
+
     }
   catch (bbtk::Exception e)
     {
       std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
       return 1;
     }
+
+  // JGRR & CM : this kills this never-ending process, when it's supposed to.
+  std::cout << "bbRegenerateBoxesLists has finished normally. It will be aborted on purpose."<< std::endl; 
+  abort();
+  // EO JGRR & CM
   return 0;
 }
 //==========================================================================