Files
gnatstudio/examples/python
Jerome Lambourg d0ca7e6778 * expect_interface.adb:
(Show_Command_Cst, Register_Commands): New parameter Show_Command.
(Custom_Action_Record): Handle remote actions and the new Show_Command
 parameter.
(Execute): Spawn the process in Execute if not done in Custom_Spawn_Handler:
 this allow command queuing required for remote sync operations. Handle the new
 Show_Command parameter, allowing the display of the command line on the
 Messages console.
(Get_New_Queue_Id): Used to create unique queue id, used in remote
 synchronisation commands queing.
(Custom_Spawn_Handler): Do not spawn directly the process in case of remote
 execution, to allow asynchronous execution (after sync operation). Enqueue
 remote syncronisation commands when needed. Handle the new Show_Command
 parameter.


* gnatclean.py:
(clean_project): Instruct Process to show the command line when executing the
 gnatclean command.

* gps-kernel-scripts.adb:
(File_Name_Prameters, Register_Default_Script_Commands,
 Create_File_Command_Handler): Add a new parameter to File.name() command
 allowing the retrieval of the file translation path on a remote server.

* gps-kernel-remote.adb:
(From_Callback_Data_Sync_Hook, Create_Callback_Data, Synchronize): Handle a new
 rsync hook parameter: print_command.
(Synchronize, On_Project_Changing): New parameter print_command, allowing the
 rsync command to be printed on the Messages console.

* gps-kernel-remote.ads:
(Rsync_Hook_Args): New rsync hook parameter: print_command.
(Synchronize): New parameter print_command, allowing the rsync command to be
 printed on the Messages console.

* gps-kernel-timeout.adb:
(Launch_Process): Modification due to the new Synchronize's Print_Command
 parameter

* remote_sync_module.adb:
(Launch_Process): Handle the new hook parameter Print_Command.

* remote_views.adb:
(On_Sync_Menu_Clicked): Modification due to the new Synchronize's Print_Command
 parameter

* shell_commands.xml:
(GPS.File.name): documentation of the new remote_server parameter.
(GPS.Process): modify the "remote_server" declaration according to the rest of
 the documentation. Add documentation for "show_command". Remove the documented
 exception raised (no more raise as the process is spawned asynchronously).

Full handling of remote operations from python scripts: the GPS.Process class
 now handle remote operations with automatic rsync, the File class now handle
 retrieval of a File path on a remote server.
GPS.Process now allows display of the command line the same way as done from
 Ada, for consistency.

Correction of GC19-019




git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120605 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-09 14:44:14 +00:00
..
2006-07-26 09:26:10 +00:00
2007-11-27 16:39:46 +00:00
2004-09-27 13:14:51 +00:00
2007-03-14 07:51:10 +00:00
2008-01-09 14:44:14 +00:00
2006-08-09 08:24:08 +00:00
2005-04-11 14:42:46 +00:00
2006-12-06 10:24:02 +00:00

This directory contains a number of python scripts, that show how
GPS can be extended through this scripting language.

To use any of these scripts, copy the file to your $HOME/.gps/plug-ins
directory.