![]() ZEN_ON_SCOPE_EXIT( if (! globalWindowWasSet()) wxTheApp-> ExitMainLoop()) //quit application, if no main window was set (batch silent mode)Ĭonst char* optionSendTo = "-sendto " //remaining arguments are unspecified number of folder paths wonky syntax let's keep it undocumentedĪuto isHelpRequest = ( const Zstring& arg)Īuto it = std::find_if(arg. FreeFileSync is a free backup app that helps you compare and synchronize files and folders on Windows, Linux, and OS X. WxTheApp-> SetExitOnFrameDelete( false) //prevent popup-windows from becoming temporary top windows leading to program exit after closure we want to exit only if the logical main window is closed, not just *any* window! Void Application::launch( const std::vector& commandArgs) catch (.) -> Windows: let it crash and create mini dump!!! Linux/macOS: std::exception::what() logged to console TerminateProcess( static_cast(FfsExitCode:: exception)) Void Application::OnUnhandledException() //handles both wxApp::OnInit() + wxApp::OnRun()Ĭatch ( const std::bad_alloc& e) //the only kind of exception we don't want crash dumps for parallel xBRZ-scaling! => run as early as possible do not call wxApp::OnInit() to avoid using wxWidgets command line parser alternative2: wxMessageBox() => works, but we probably shouldn't block during command line usage alternative1: wxSafeShowMessage => NO console output on Debian x86, WTF! call Path\deploy.ffsbatch The build console displays success if deploy.ffsbatch execution was successful. alternative0: std::wcerr: cannot display non-ASCII at all, so why does it exist? 7 I have just setup Jenkins CI as my build server but I have an issue with correctly configuring FreeFileSync batch file and the command that calls the batch file used for deploying the application after building it. Std::cerr (title) + "] " + utfTo(msg) + ' \n ' error handling strategy unknown and no sync log output available at this point! empty() ? L" " : SPACED_DASH + msgTypeName) Void Application::notifyAppError( const std::wstring& msg, FfsExitCode rc)Ĭase FfsExitCode::warning: return _( "Warning ") Ĭase FfsExitCode::error: return _( "Error ") Ĭase FfsExitCode::aborted: return _( "Error ") Ĭase FfsExitCode:: exception: return _( "An exception occurred ") Ĭonst std::wstring title = copyStringTo(wxTheApp-> GetAppDisplayName()) + _( "Path to an alternate GlobalSettings.xml file. _( "Open the selected configuration for editing only, without executing it. _( "Any number of alternative directory pairs for at most one config file. _( "Any number of FreeFileSync \"ffs_gui \" and/or \"ffs_batch \" configuration files. SetDetailInstructions( _( "Syntax: ") + L" \n\n " + ![]() ShowNotificationDialog( nullptr, DialogInfoType::info, PopupDialogCfg(). WxDEFINE_EVENT(EVENT_ENTER_EVENT_LOOP, wxCommandEvent) argv))) //so we are forced to use this pitiful excuse for a range construction!! Std::vector getCommandlineArgs( const wxApp& app)įor ( int i = 1 i ( wxString(app. * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * * This file is part of the FreeFileSync project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |