IDE Window: External Tool: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | > **Note:** External tools are global, not project specific | |
| 2 | 2 | ||
| 3 | 3 |  | |
| 4 | 4 | ||
| 5 | 5 | ### Title | |
| 6 | 6 | ||
| 7 | 7 | This name is is shown in the IDE menu. | |
| 8 | 8 | ||
| 9 | 9 | ### Program Filename | |
| 10 | 10 | ||
| 11 | 11 | The full path to the tool. For example: | |
| 12 | 12 | ||
| 13 | - | ||
| 13 | + | ```text | |
| 14 | + | /usr/bin/ppc386 | |
| 15 | + | ``` | |
| 14 | 16 | ||
| 15 | 17 | ### Parameters | |
| 16 | 18 | ||
| 17 | 19 | The command line parameters. For example: | |
| 18 | 20 | ||
| 19 | - | ||
| 21 | + | ```text | |
| 22 | + | -l test.pas | |
| 23 | + | ``` | |
| 20 | 24 | ||
| 21 | 25 | ### Working Directory | |
| 22 | 26 | ||
| 23 | 27 | The directory, where to start the tool. All relative paths will be relative to this. | |
| 24 | 28 | ||
| 25 | 29 | ### Options | |
| 26 | 30 | ||
| 27 | 31 | #### Scan output for FPC messages | |
| 28 | 32 | ||
| 29 | 33 | Parse the output for FPC messages and jump to errors. | |
| 30 | 34 | ||
| 31 | 35 | #### Show console | |
| 32 | 36 | ||
| 33 | 37 | Only available on MS Windows. Creates a console. Default is false. Since 1.7. | |
| 34 | 38 | ||
| 35 | 39 | #### Hide window | |
| 36 | 40 | ||
| 37 | 41 | Only available on MS Windows. Do not show the application window. Default is true. Since 1.7. | |
| 38 | 42 | ||
| 39 | 43 | #### Scan output for make messages | |
| 40 | 44 | ||
| 41 | 45 | Parse the output for make messages and jump to errors. | |
| 42 | 46 | ||
| 43 | 47 | ### Key | |
| 44 | 48 | ||
| 45 | 49 | Define the shortcut for this tool. This is optional. | |
| 46 | 50 | ||
| 47 | 51 | ### Macros | |
| 48 | 52 | ||
| 49 | 53 | You can use macros in the programfilename, the parameters and the working directory. | |
| 50 | 54 | ||
| 51 | 55 | See [[IDE Macros in paths and filenames]]. | |
| 52 | 56 | ||
| 53 | 57 | ### Examples | |
| 54 | 58 | ||
| 55 | 59 | #### Run cmd.exe | |
| 56 | 60 | ||
| 57 | 61 | Choose \<Tools\>\<Configure External Tools\> from the lazarus main menu and setup the following. | |
| 58 | 62 | ||
| 59 | 63 | - Title: cmd.exe | |
| 60 | 64 | - Program Filename: C:\windows\system32\cmd.exe | |
| 61 | 65 | - Working Directory: \$(ProjPath) | |
| 62 | 66 | - Disable all scanners | |
| 63 | 67 | - Show console: enable | |
| 64 | 68 | - Hide window: disable | |
| 65 | 69 | ||
| 66 | 70 | #### Run Tortoisesvn to checkout or update your local svn repository | |
| 67 | 71 | ||
| 68 | 72 | Add a function to checkout svn sources from the repository. This example shows how to do this if you are on windows and have tortoisesvn installed. First create a batch-file in the folder lazarus\tools. (e.g lazarus\tools\checkout_lazarus_win.bat) | |
| 69 | 73 | ||
| 70 | 74 | *tortoiseproc /command:checkout /url:"<http://svn.freepascal.org/svn/lazarus/trunk/>" /path:"..\\"* | |
| 71 | 75 | ||
| 72 | 76 | Then choose \<Tools\>\<Configure External Tools\> from the lazarus main menu and setup the following. | |
| 73 | 77 | ||
| 74 | 78 | - Title: Checkout Lazarus | |
| 75 | 79 | - Program Filename: \$LazarusDir()\tools\checkout_lazarus_win.bat | |
| 76 | 80 | - Working Directory: \$LazarusDir()\tools\\ | |
| 77 | 81 | ||
| 78 | 82 | If you want to add an additional function to update the Lazarus sources from repository, then you can create another batch-file with the following content. | |
| 79 | 83 | ||
| 80 | 84 | *tortoiseproc /command:update /path:"..\\"* | |
| 81 | 85 | ||
| 82 | 86 | --- | |
| 83 | 87 | *From the Free Pascal wiki, page "IDE Window: External Tool", as it stood on 2023-05-09 after a change by Mattias2, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 84 | 88 | Category: IDE Window |
