122 Commits

Author SHA1 Message Date
Arnaud Charlet
55d72b6f51 Improve plug-in to save contents in project's object dir.
Part of H103-005


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@125620 936e1b1b-40f2-da11-902a-00137254ae57
2008-06-13 07:47:19 +00:00
Arnaud Charlet
11375b2153 Only use one top level contextual menu to avoid polluting contextual menu too
much.
Put in standard plug-in format.
Part of H103-005


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@125619 936e1b1b-40f2-da11-902a-00137254ae57
2008-06-13 07:46:16 +00:00
Arnaud Charlet
93a6dc2a92 Minor editing.
Part of H103-005


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@125596 936e1b1b-40f2-da11-902a-00137254ae57
2008-06-12 13:58:03 +00:00
Florian Villoing
525d0fffdd Update to new GPS python API.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@125507 936e1b1b-40f2-da11-902a-00137254ae57
2008-06-10 13:09:21 +00:00
Emmanuel Briot
58ff663fab New example (for GA19-017). GPS now has built-in support for this, so this
is not made a full plug-in


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@122953 936e1b1b-40f2-da11-902a-00137254ae57
2008-03-12 16:58:06 +00:00
Florian Villoing
e32dae0009 Replace the gnatclean plug-in with a new one that deals with gprbuild.
For GC14-012.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120607 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-09 15:32:35 +00:00
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
Florian Villoing
00c931b048 (clean_project): Launch the cleaning process on the build server.
For GC14-012.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120530 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-08 13:48:26 +00:00
Florian Villoing
16bd73831c (clean_project): Fix initialization of the project to clean.
For GC14-012.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120529 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-08 13:40:33 +00:00
Florian Villoing
4f04612e69 (clean_project): Provide a static default value for the root project. Default
values are initialized at the time the script is loaded and this does not work
 in the remote case.
For GC14-012.



git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120513 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-08 10:41:39 +00:00
Florian Villoing
a5557c1ec9 Move the plug-in to a more appropriate transient place pending GC19-019
implementation and add a comment about its current limitations.
For GC14-012.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@120336 936e1b1b-40f2-da11-902a-00137254ae57
2008-01-03 10:55:37 +00:00
Arnaud Charlet
48a8dd84eb Close file after use, to avoid opening thousands of files at the same time,
using lots of memory and slowing down the processing.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119730 936e1b1b-40f2-da11-902a-00137254ae57
2007-11-28 13:46:52 +00:00
Florian Villoing
a4f00b142e New python example that demonstrate how to reformat all sources from a
project in a single command line.
For GB27-021.


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119729 936e1b1b-40f2-da11-902a-00137254ae57
2007-11-28 13:36:27 +00:00
Arnaud Charlet
c8a854c412 Fix typo.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119685 936e1b1b-40f2-da11-902a-00137254ae57
2007-11-27 16:39:46 +00:00
Florian Villoing
8c4921bd1b New example for GA23-018.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@119683 936e1b1b-40f2-da11-902a-00137254ae57
2007-11-27 16:38:09 +00:00
Emmanuel Briot
22c0ed207f Shows how to indent multiple source files (G719-005)
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@113727 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-20 09:18:02 +00:00
Emmanuel Briot
ad392b649f New example showing how to retrieve all global entities in a project, file or
application. Initially discussed in G124-019


git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@113720 936e1b1b-40f2-da11-902a-00137254ae57
2007-07-19 17:49:08 +00:00
Florian Villoing
0a31a0da5b New example inspired by G503-015.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@101449 936e1b1b-40f2-da11-902a-00137254ae57
2007-05-04 15:36:35 +00:00
Florian Villoing
59c6357435 Improve comment.
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100976 936e1b1b-40f2-da11-902a-00137254ae57
2007-03-14 07:51:10 +00:00
Florian Villoing
a6122b67ab Add an example of a python script that can be used to generate documentation
in batch mode without any need for interaction with the GUI.
For G125-003.


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100509 936e1b1b-40f2-da11-902a-00137254ae57
2007-01-25 11:04:20 +00:00
Emmanuel Briot
dded5c4105 Example used for F629-017
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100215 936e1b1b-40f2-da11-902a-00137254ae57
2006-12-06 10:24:02 +00:00
Emmanuel Briot
6f52d5823e New example for D927-003. There is an automatic regression test for this one
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@100212 936e1b1b-40f2-da11-902a-00137254ae57
2006-12-06 10:10:52 +00:00
Jerome Lambourg
f40ac348a9 Script example for automatically assigning a scenario variable when the build
server changes.
Example sent to customer for F808-028


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98636 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-09 08:51:54 +00:00
Emmanuel Briot
bc321bf318 New example, from F808-027
git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98635 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-09 08:24:08 +00:00
Emmanuel Briot
5b9f4761f4 MOve some of the scripts to share/library, so that users can easily load
them in GPS


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@98566 936e1b1b-40f2-da11-902a-00137254ae57
2006-08-07 11:14:55 +00:00