note description: "Registry settings used by Eiffel Codedom Compiler for precompiler" legal: "See notice at end of class." status: "See notice at end of class." date: "$Date$" revision: "$Revision$" class CODE_PRECOMPILER_REGISTRY_SETTINGS inherit CODE_REGISTRY_KEYS CODE_SHARED_EVENT_MANAGER export {NONE} all end feature -- Access directory (a_ace_file_name: STRING): STRING -- Precompile directory for precompile with file name `a_ace_file_name' -- Note: this feature does not guarentee the existence of the actual directory require non_void_ace_file_name: a_ace_file_name /= Void local l_retried: BOOLEAN do if not l_retried then Result := Config_table.item (a_ace_file_name) end rescue Event_manager.process_exception l_retried := True retry end feature -- Status Report has_directory (a_ace_file_name: STRING): BOOLEAN -- Does precompile with ace file `a_ace_file_name' have associated directory? require non_void_ace_file_name: a_ace_file_name /= Void local l_retried: BOOLEAN do if not l_retried then Result := Config_table.has (a_ace_file_name) end rescue Event_manager.process_exception l_retried := True retry end feature -- Basic Operation add_precompile (a_ace_file_name, a_directory: STRING) -- Add precompile with ace file `a_ace_file_name' to be compiled in `a_directory'. require non_void_ace_file_name: a_ace_file_name /= Void non_void_directory: a_directory /= Void not_has_directory: not has_directory (a_ace_file_name) local l_retried: BOOLEAN do if not l_retried then Config_table.put (a_directory, a_ace_file_name) end rescue Event_manager.process_exception l_retried := True retry end change_precompile_directory (a_ace_file_name, a_directory: STRING) -- Change directory to `a_directory' for precompile with ace file name `a_ace_file_name'. require non_void_ace_file_name: a_ace_file_name /= Void non_void_directory: a_directory /= Void local l_retried: BOOLEAN do if not l_retried then Config_table.replace (a_directory, a_ace_file_name) end rescue Event_manager.process_exception l_retried := True retry end remove_precompile (a_ace_file_name: STRING) -- Remove settings for precompile with ace file `a_ace_file_name'. require non_void_ace_file_name: a_ace_file_name /= Void has_directory: has_directory (a_ace_file_name) local l_retried: BOOLEAN do if not l_retried then Config_table.remove (a_ace_file_name) end rescue Event_manager.process_exception l_retried := True retry end feature {NONE} -- Private Access Config_table: CODE_REGISTRY_TABLE -- Table holding precompile ace files path and directories once create Result.make (Precompile_folders_key, Precompile_ace_files_key) end note copyright: "Copyright (c) 1984-2006, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class CODE_PRECOMPILER_REGISTRY_SETTINGS